Wednesday, January 02, 2008

Using GNU screen as a terminal emulator for serial null modem connections

Don't have tip / cu / minicom / kermit / hyperterminal / securecrt / an old vt100 / whatever around or just love GNU Screen? Here's a cool tip:

Start a screen session on the serial console at 9600baud:

$ screen /dev/ttyS0 9600

Too slow and your setup can handle it? Use 115200 baud:

$ screen /dev/ttyS0 115200
So, how do you send a break? C-a B. Just use Ctrl-a ? for help.


monzool said...

Had to slap myself on the forehead when I read this :-)

At work I've been frustrated with minicom clearing all text when minimizing or resizing the VMvware window. Can't believe I didn't think of using Screen.
I've used Screen a lot, so I should have known that this wonder tool also do null modem connections.
Thanx for the tip :-)