home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR21
/
DEPTY309.ZIP
/
DEPARC.EXE
/
SCRIPTS.EXE
/
VT320.DSL
< prev
Wrap
Text File
|
1993-10-15
|
4KB
|
172 lines
Script VT320; (* VT320 Script V.1.00 *)
(* Select VT320 emulation first *)
BEGIN
(* Map F11-F12 to Ctl-F1 and Ctl-F2 in addition to F11 and F12 *)
MapKey(350,"\033[23~"); (* F11 -> Ctl-F1 *)
MapKey(351,"\033[24~"); (* F12 -> Ctl-F2 *)
(* Add function keys F13-F20 *)
MapKey(352,"\033[25~"); (* F13 -> Ctl-F3 *)
MapKey(353,"\033[26~"); (* F14 -> Ctl-F4 *)
MapKey(354,"\033[27~"); (* F15 -> Ctl-F5 *)
MapKey(355,"\033[28~"); (* F16 -> Ctl-F6 *)
MapKey(356,"\033[29~"); (* F17 -> Ctl-F7 *)
MapKey(357,"\033[30~"); (* F18 -> Ctl-F8 *)
MapKey(358,"\033[31~"); (* F19 -> Ctl-F9 *)
MapKey(359,"\033[32~"); (* F20 -> Ctl-F10 *)
(* Reassign certain keys to more closely match their labels *)
MapKey(335,"\033[1~"); (* Find -> End *)
MapKey(338,"\033[2~"); (* Insert -> Insert *)
MapKey(339,"\033[3~"); (* Remove -> Delete *)
MapKey(327,"\033[4~"); (* Select -> Home *)
MapKey(329,"\033[5~"); (* Prev Scr -> Page Up *)
(* Swap backspace and Rub Out functions *)
MapKey(8,"\177"); (* Backspace -> Backspace *)
MapKey(127,"\008"); (* Ctl-H -> Ctl-Backspace *)
END VT320A. (* This is the end of the actual script *)
(* Key Codes Follow :
(This section doesn't do anything, it is just for reference)
BACKTAB = 10FH;
ALT_A = 11EH;
ALT_B = 130H;
ALT_C = 12EH;
ALT_D = 120H;
ALT_E = 112H;
ALT_F = 121H;
ALT_G = 122H;
ALT_H = 123H;
ALT_I = 117H;
ALT_J = 124H;
ALT_K = 125H;
ALT_L = 126H;
ALT_M = 132H;
ALT_N = 131H;
ALT_O = 118H;
ALT_P = 119H;
ALT_Q = 110H;
ALT_R = 113H;
ALT_S = 11FH;
ALT_T = 114H;
ALT_U = 116H;
ALT_V = 12FH;
ALT_W = 111H;
ALT_X = 12DH;
ALT_Y = 115H;
ALT_Z = 12CH;
K_HOME = 147H;
K_END = 14FH;
K_INSERT = 152H;
K_DEL = 153H;
CTL_LEFT = 173H;
CTL_RIGHT = 174H;
CTL_HOME = 177H;
CTL_END = 175H;
CTL_PGUP = 184H;
CTL_PGDN = 176H;
CTL_UP = 397;
CTL_DOWN = 401;
C_LEFT = 14BH;
C_CENTER = 14CH;
C_RIGHT = 14DH;
C_UP = 148H;
C_DOWN = 150H;
PG_DOWN = 151H;
PG_UP = 149H;
F1 = 13BH;
F2 = 13CH;
F3 = 13DH;
F4 = 13EH;
F5 = 13FH;
F6 = 140H;
F7 = 141H;
F8 = 142H;
F9 = 143H;
F10 = 144H;
F11 = 185H;
F12 = 186H;
SHIFT + function key
S_F1 = 154H;
S_F2 = 155H;
S_F3 = 156H;
S_F4 = 157H;
S_F5 = 158H;
S_F6 = 159H;
S_F7 = 15AH;
S_F8 = 15BH;
S_F9 = 15CH;
S_F10 = 15DH;
S_F11 = 187H;
S_F12 = 188H;
CTRL + function key
C_F1 = 15EH;
C_F2 = 15FH;
C_F3 = 160H;
C_F4 = 161H;
C_F5 = 162H;
C_F6 = 163H;
C_F7 = 164H;
C_F8 = 165H;
C_F9 = 166H;
C_F10 = 167H;
C_F11 = 189H;
C_F12 = 18AH;
ALT + functionkey
ALT_F1 = 168H;
ALT_F2 = 169H;
ALT_F3 = 16AH;
ALT_F4 = 16BH;
ALT_F5 = 16CH;
ALT_F6 = 16DH;
ALT_F7 = 16EH;
ALT_F8 = 16FH;
ALT_F9 = 170H;
ALT_F10 = 171H;
ALT_F11 = 18BH;
ALT_F12 = 18CH;
APP_0 = 1C2H;
APP_1 = 1BFH;
APP_2 = 1C0H;
APP_3 = 1C1H;
APP_4 = 1BBH;
APP_5 = 1BCH;
APP_6 = 1BDH;
APP_7 = 1B7H;
APP_8 = 1B8H;
APP_9 = 1B9H;
APP_10 = 1BAH;
APP_11 = 1BEH;
APP_12 = 1C3H;
APP_13 = 1C4H;
M_LEFT_B = 201H;
M_RIGHT_B = 202H;
M_LEFT = 203H;
M_RIGHT = 204H;
M_UP = 205H;
M_DOWN = 206H;
M_CENTER_B = 207H;
BARRIGHT = 208H;
BARLEFT = 209H;
*)