home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
clarion
/
setkcd.zip
/
SETKCD.COM
/
SETKCODE.CLA
< prev
Wrap
Text File
|
1989-10-14
|
832b
|
40 lines
SetKCode PROGRAM
MAP
MODULE('SetKcd'), BINARY
PROC(SetKcd)
END ! MODULE
END ! MAP
Screen SCREEN HUE(11,1)
ROW(1,1) STRING('╔═{78}╗')
ROW(2,1) REPEAT(23);STRING('║<0{78}>║') .
ROW(25,1) STRING('╚═{78}╝')
ROW(3,27) STRING('TEST THE `SET-KEYCODE()'' LEM')
ROW(7,33) STRING('KEYCODE() =')
Keycode COL(45) STRING(@N4),HUE(15,1)
ROW(9,30) STRING('SET KEYCODE() TO :')
COL(49) ENTRY(@N4),USE(Code),HUE(15,1),SEL(0,7),INS
.
Code SHORT
Esc_Key EQUATE(256)
CODE
OPEN(Screen)
LOOP
ALERT(Esc_Key)
KeyCode = KEYCODE()
SELECT(?Code)
ACCEPT
IF KEYCODE() = Esc_Key THEN RETURN.
SetKcd(Code)
END ! LOOP