vt100 escape codes that work with emulator

125 views
Skip to first unread message

Jason Okeefe

unread,
Jun 1, 2021, 12:00:07 AM6/1/21
to Altair-Duino

so how does this work with the positions? is there some kind of lead in seperated by a ; with a termination character?
1b 4b should be clear end of line
1b 4a clear end of screen
1b 63 clear screen and home?
any good links that apply here, i look up vt100 and you get a lot of the same info but doesn't seem to really work reliably, could it be some kind of serial connection that needs a delay, what to do about this?

fred_...@hotmail.com

unread,
Jun 1, 2021, 8:07:42 AM6/1/21
to Altair-Duino
Jason -- this is going to sound insane... You are close but...

ESC [ H ESC [ 2 J

is clear screen and home. The lead in sequence is 1b 5b, so the complete sequence is

1b 5b 48 1b 5b 32 4a

and, yes, it is really 7 bytes long.

the first part just homes the cursor, the second clears to end of screen

1b 5b 4b

is clear to end of line

FredW

Jason Okeefe

unread,
Jun 1, 2021, 10:44:00 PM6/1/21
to Altair-Duino
This is what i have so far, its almost working but something still off with the positioning. any ideas?
 
Terminal Paramters
1. 24 rows, 80 columns
2. no initialization string
3. no de-initialization string
4. home-and-clear 1b 5b 48 1b 5b 32 4a
5. clear-to-eol 1b 5b 4b
6. clear-to-eos 1b 5b 4a
7. cursor pos lead-in 1b 5b
8. cursor pos seperator 3b
9. cursor pos trailer 48
10. standard bell character
11. cursor pos row first
12. Ascii
13. biases: row 32, col 32
14. no padding
15. entry radix :hex

Jason Okeefe

unread,
Jun 1, 2021, 11:08:43 PM6/1/21
to Altair-Duino
okay so i been pulling my hair out on this, and turns out the biases were set at default to 32 and i put them both to 0 and it seems to be fixed, going to do some more testing but i think that has done it!!
Reply all
Reply to author
Forward
0 new messages