petrohi / terminal

Geoff's VT100 Terminal
Other
79 stars 24 forks source link

Direct cursor addressing in VT52 uses invalid command #3

Closed alavrentiev closed 4 years ago

alavrentiev commented 4 years ago

firmware/Terminal.X/vt100.c#L387

uses \033[ but it should have used \033Y

Refs: http://www.bitsavers.org/pdf/dec/terminal/vt52/EK-VT5X-OP-001_DECscope_Users_Manual_Mar77.pdf

Page 20, section 11:

  1. DIRECT CURSOR ADDRESSING (VT50H and VT52 only) invoked by ESC Y (033 131) The next code after ESC Y that the host sends to the terminal will not be displayed but will be interpreted as specifying one of the lines on the screen. The character the terminal receives after that will not be displayed but will be interpreted as specifying one of the columns on the screen. The cursor will be moved to the character position at the specified line and column. The complete Direct Cursor Addressing command has this form: ESC Y line# column#