Disable Ctrl-N key (AREV Specific)
At 21 JAN 2002 01:55:31PM Mark Watford wrote:
Using Arev 1.16, trying to find the Ascii value for the Ctrl-N keystroke. Any suggestions on where I could find a complete table of the keystrokes.
Thanks,
Mark
At 21 JAN 2002 03:55PM Richard Hunt wrote:
Not sure where to find a table of keystrokes. Try this program…
PRINT @(-1):LOOPPRINT 'Enter a character. ':INPUT REPLYUNTIL REPLY EQ '' DOSEQ=SEQ(REPLY1,1)MESSAGE=Value=:SEQCALL MSG(MESSAGE)REPEATSTOPEND
It will report most keystrokes.
At 21 JAN 2002 04:14PM Mark Watford wrote:
Thanks for the help, the problem I was having was what Char(?) is before Char(14) to give you Ctrl-N, for the Alt key it is Char(0) for Ctrl it is Char(254).
Thanks Again
At 22 JAN 2002 01:41PM Victor Engel wrote:
Richard's routine will not detect keystrokes that return two bytes. Better would be something like this:
STOPCHAR=CHAR(27)
LOOP
INPUT CHARACTER,-1
UNTIL CHARACTER=STOPCHAR
OUTPUT='
FOR POS=1 TO LEN(CHARACTER)
OUTPUT := SEQ(CHARACTERPOS,1):' 'NEXT
REPEAT
CALL MSG(OUTPUT)
At 22 JAN 2002 01:46PM Victor Engel wrote:
The code for CTRL characters are only a single digit and match the ordinal number of its position in the alphabet, i.e., 'A'=char(1), 'B'=char(2), 'C'=char(3), etc. If the code is more than one digit, the first digit is char(0). I hope this helps.
At 22 JAN 2002 08:22PM Mark Watford wrote:
Thanks that answered all of my questions.