#******************************************************************************
# @(#)
# @(#)  File           :      hp2vt_mk
# @(#)
# @(#)  Terminal       :      HP700/92/94 in vt200 emulation with HP70092 fkeys
# @(#)  Setup          :      EM220, 8 bits
# @(#)                       
# @(#)                       
# @(#)  Emulation Mode :      starts in hp, vt200, ends in hp
# @(#)  Character Set  :      ISO Latin-1
# @(#)
# @(#)  Date           :      09-07-97
# @(#)	Driverset      :      97.002
# @(#)  Bshell Version :      6.1C
# @(#)  Driver Version :      6.1.00
# @(#)  Copyright      :      Simac Services b.v. (c)
# @(#)  Customer       :      Baan Development b.v.
# @(#)
# @(#)  Comment        :      this driver switches the HP-terminal to EM220
# @(#)                        mode en returns back to HP-mode at the end of a
# @(#)                        session
# @(#)
# @(#)                        corrected 80/132 columns
# @(#)                        corrected attributes
# @(#)                        replaced fkey-include to 'hp70092.fk'
# @(#)                        corrected cursor visibility (clear)
# @(#)                        corrected cursor key mode (\e[?1l) to normal
# @(#)
#******************************************************************************


#******************************************************************************
#    Include files
#******************************************************************************

include=hp70092.fk,

#******************************************************************************
#    Booleans
#******************************************************************************

vt100,
mcf,
mgr,

#******************************************************************************
#    Numbers
#******************************************************************************

cols=132,
lines=24,
cf_pos=0,
gr_pos=0,
tmo=5,
disp_vt100=0,

#******************************************************************************
#    Strings
#******************************************************************************
 
#    Setup
#
#    init     \e&k1\\  go to em220 mode
#             \e[?3l   set 80 cols
#             \e[0;1m  reset attributes and set bold
#             \e>      set keypad mode to numeric
#             \e[?1l   set cursor key mode to normal
#             \e[?25h  set cursor mode to visible
#    init2    \e(0     load Special Graphic char set in G0
#     (fonts) ^O (SI)  invoke G0 into GL
#             \e L     ANSI level 1 conform. mode: ASCII   -> G0 -> GL,
#                                                  Latin-1 -> G1 -> GR
#             \e N     ANSI level 3 conform. mode: ASCII   -> G0 -> GL
#    reset    \e[0m    reset attributes
#             \e[H     cursor position 0,0
#             \e[2J    reset entire screen
#             \e&k0\\\eE go to HP mode, reset
#
init=\e&k1\\\e[?3l\e[0;1m\e>\e[?1l\e[?25h,
init2=\e(B^O,
reset=\e[0m\e[0;0H\e[2J\e(B^O\e&k0\\\eE,

set80=\e[?3l,
set132=\e[?3h,

bell=^G,

csr=%i\e[%p1%d;%p2%dr,

#    Line Draw Chars (Char.set: DEC Special Graphic)
#
gr_on=\e(0^O,
gr_ond=\e(0^O\e[0m,
gr_off=\e(B^O,
gr_offd=\e(B^O\e[0m,

cbl=m,
cbld=m,
cbr=j,
cbrd=j,
ctl=l,
ctld=l,
ctr=k,
ctrd=k,
dt=v,
dtd=v,
ut=w,
utd=w,
lt=t,
ltd=t,
rt=u,
rtd=u,
kr=n,
krd=n,
hb=q,
hbd=q,
vb=x,
vbd=x,

#    Code Features
#
cf_n=\e[0m,
cf_d=\e[0;1m,
cf_b=\e[0;5m,
cf_db=\e[0;1;5m,
cf_r=\e[0;7m,
cf_dr=\e[0;1;7m,
cf_br=\e[0;5;7m,
cf_dbr=\e[0;1;5;7m,
cf_u=\e[0;4m,
cf_du=\e[0;1;4m,
cf_bu=\e[0;4;5m,
cf_dbu=\e[0;1;4;5m,
cf_ru=\e[0;4;7m,
cf_dru=\e[0;1;4;7m,
cf_bru=\e[0;4;5;7m,
cf_dbru=\e[0;1;4;5;7m,

#    Cursor Control & Positioning
#
cu_on=\e[?25h,
cu_off=\e[?25l,
cup=%i\e[%p1%d;%p2%dH,

cuu=\e[%p1%dA,
cuu1=\e[1A,
cud=\e[%p1%dB,
cud1=\e[1B,
cuf=\e[%p1%dC,
cuf1=\e[1C,
cub=\e[%p1%dD,
cub1=\e[1D,

kd=\E[B,
kl=\E[D,
ku=\E[A,
kf=\E[C,

home=\e[0;0H,
clear=\e[0;0H\e[2J,

#    Editing
#
inch=\e[1@,
delch=\e[1P,
inli=\e[1L,
delli=\e[1M,
el=\e[0K,
es=\e[0J,
#ewin=,

#    Printer Control
#
aux_on=\e[5i,
aux_off=\e[4i,

#    Nls
#
nls_in=generic.in,
