Does anybody remember how to do vt100 cursor control using Basic-Plus?
I've seen lists of the codes, but can't seem to remember how to make
it work. I know it involves sending escape codes, but not how.
Does anybody remember how to do vt100 cursor control using Basic-Plus?
I've seen lists of the codes, but can't seem to remember how to make it work. I know it involves sending escape codes, but not how.
Any help would be greatly appreciated, especially example code I could play with.
Hardcoding escape codes is usually the wrong solution...
On Monday, August 22, 2016 at 2:07:17 PM UTC+12, Dennis Boone wrote:
Hardcoding escape codes is usually the wrong solution...
You have no choice, when RSTS/E doesn’t provide any curses-type functionality.
Between Dennis and Johnny, I got the idea of how to make it work.
I ended up using chr$(155) for the escape code (27+128) and had
to switch terminal emulator software to make the codes do what I
expected them to do.
Between Dennis and Johnny, I got the idea of how to make it work.
I ended up using chr$(155) for the escape code (27+128) and had
to switch terminal emulator software to make the codes do what I
expected them to do.
If memory serves, setting the 8th bit on the ESC (155) gives you the
CSI character referred to by all the references, and is equivalent
to the ESC plus the [. Doing it this way assumes an 8-bit-clean path
from the program to the terminal emulator.
On 2016-09-18 23:54, Dennis Boone wrote:
Between Dennis and Johnny, I got the idea of how to make it work.
I ended up using chr$(155) for the escape code (27+128) and had
to switch terminal emulator software to make the codes do what I expected them to do.
If memory serves, setting the 8th bit on the ESC (155) gives you the
CSI character referred to by all the references, and is equivalent
to the ESC plus the [. Doing it this way assumes an 8-bit-clean path
from the program to the terminal emulator.
That is true in a general sense, in that CSI is (155) in Latin-1 and DEC
MCS. However, as I said before, RSTS/E is playing tricks. If you print
an ESC (33), the RSTS/E terminal driver will print out a '$' instead In
order to print the actual ESC character, you need to set the high bit.
RSTS/E will strip it off, but print the ESC literally. So no, in this
case you are *not* getting a CSI. You actually cannot print a CSI
character from RSTS/E, unless you set the terminal in some special mode perhaps.
All from memory, as usual, but I think I remember this right.
Johnny
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 343 |
Nodes: | 16 (2 / 14) |
Uptime: | 12:45:22 |
Calls: | 7,553 |
Files: | 12,730 |
Messages: | 5,653,478 |