DB25 β DB9, 9600 8N1, ttyUSB0

A VT220 is just an RS-232 endpoint. The βmysteryβ is always cable topology or framing. These are my notes from getting it to behave as a Linux serial console.





RS-232 idle sits at negative voltage. If I see 0β3.3V idle, Iβm not on RS-232.
Two DTEs β cross TX/RX (null-modem) and share ground.
I start by proving the adapter and cable with minicom, then switch to getty.
/dev/ttyUSB09600 8N1I ended up with serial-getty@ttyUSB0 and forced 9600 + TERM=vt220.
These are the ones I actually use when driving the VT220 as a display.
ESC means \x1b.
Reset / clear (my default)
ESC[0mESC[?5lESC[?25l / ESC[?25hESC[2J + ESC[HThis is exactly what ~/Workspace/termino/tools/serial_run.py and serial_panel.py send on startup:
ESC[0m ESC[?5l ESC[?25l ESC[2J ESC[HCursor + line ops
ESC[{r};{c}HESC[K(See serial_panel.py: it updates only changed lines via CUP+EL.)
SGR (style)
ESC[0mESC[1mESC[4mESC[5mESC[7mBig text (DEC/VT100-style)
ESC#3 / ESC#4ESC#6ESC#5\\x1b[0m\\x1b[2J\\x1b[H