home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nibble Magazine
/
nib25b.dsk
/
ASK.KEY.bas
< prev
next >
Wrap
BASIC Source File
|
2023-02-26
|
1KB
|
22 lines
10 REM **********************
20 REM * ASK.KEY *
30 REM * BY PAUL RAYMER *
40 REM * COPYRIGHT (C) 1985 *
50 REM * BY MICROSPARC, INC *
60 REM * CONCORD, MA 01742 *
70 REM **********************
80 TEXT : HOME
90 POKE 49168,0: VTAB 1: HTAB 1: PRINT "* COPYRIGHT 1985 BY MICROSPARC, INC. *": VTAB 3: HTAB 1: PRINT "WHAT KEYBOARD CHARACTER? ";
100 A = PEEK(49152)
110 IF A <128 THEN 100
120 PRINT : PRINT
130 A$ = CHR$(A)
140 HTAB 5: PRINT "ASCII NUMBER IS";: HTAB 25: PRINT A -128: PRINT
150 HTAB 5: PRINT "NUMBER TO POKE IS";: HTAB 25: PRINT A: PRINT
160 IF A = 141 THEN A$ = "RETURN": GOTO 190
170 IF A = 136 OR A = 138 OR A = 139 OR A = 149 THEN A$ = "ARROW": GOTO 190
180 IF A <160 THEN A$ = "CONTROL": GOTO 190
190 HTAB 5: PRINT "CHARACTER IS";: HTAB 25: PRINT CHR$(34)A$ CHR$(34)
200 POKE 49168,0: VTAB 22: HTAB 5: PRINT "== PRESS <ESC> TO QUIT ==": HTAB 5: PRINT "ANY OTHER KEY TO CONTINUE";: GET AN$
210 IF AN$ < > CHR$(27) THEN PRINT : HOME : GOTO 90
220 HOME : END