I am trying to port some jBase programming that used to allow for PGUP/PGDN/arrow keys/CTRL-A/CTRL-E to Universe. It appears the best choice for this is the special !GET.KEY subroutine. When trying to test this out, I am seeing odd results when running the sample program from the documentation.
Here is what I see what I press the RIGHT ARROW:01 SINGLE.INPUT
Type a character or press a function key (q to quit):
CODE = -1 (Unrecognised function key)
STRING = CHAR(27) CHAR(91)
Type a character or press a function key (q to quit):
CODE = 0 (Normal character)
STRING = CHAR(68)
Type a character or press a function key (q to quit):
Here is what I see when I press PGUP:01 SINGLE.INPUT
Type a character or press a function key (q to quit):
CODE = -1 (Unrecognised function key)
STRING = CHAR(27) CHAR(79) CHAR(82)
Type a character or press a function key (q to quit):
Notice how the PGUP returned one string with all the values and RIGHT ARROW returned TWO strings, broken up... any thoughts as to why that is occurring?
Lastly, I did check the TERM setup... looks to be VT100:
>TERM
Terminal Printer
Page width: 79 132
Page depth: 24 59
Page skip : 0
LF delay : 0
FF delay : 2
Backspace : 8
vt100
Thanks,
Larry
------------------------------
Lawrence Rizzo
Independent Software Developer
LJR Technology Consulting LLC
------------------------------