[[https://www.revelation.com/|Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community]] ==== Disable Ctrl-N key (AREV Specific) ==== === At 21 JAN 2002 01:55:31PM Mark Watford wrote: === {{tag>"AREV Specific"}} 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): LOOP PRINT 'Enter a character. ': INPUT REPLY UNTIL REPLY EQ '' DO SEQ=SEQ(REPLY1,1) MESSAGE=Value=:SEQ CALL MSG(MESSAGE) REPEAT STOP END 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. [[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=C82E075231B83CDC88256B480067F60C|View this thread on the forum...]]