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

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):
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.

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/c82e075231b83cdc88256b480067f60c.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1