Jeff Roberts
RHCE #804006066322833
Vim-Fu is now iPhone and Android friendly

Check out the Vim-Fu Store!

Vim-Fu

Using Screen to connect to a serial console

Not much to write about here.  You can use screen as a replacement for minicom. Who knew!?!?!  Screen will never stop amazing me with all the cool stuff that it can do.

screen /dev/ttyUSB0

To set the baud rate to 57,600:

screen /dev/ttyUSB0 57600

To enable CTS/RTS handshake:

screen /dev/ttyUSB0 57600,ctsrts

^a,k to end the session.
^a,i to check the status of the serial port.

Here is the .screenrc that I found on the Interweb and have been using for a little over a year now. I wish I knew who to give credit to.

escape ^zz
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r} (%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'

It remaps the meta key from ^a to ^z so that I can still use ^a in bash to get to the beginning of the line. It also has a handy clock at the bottom of the screen. Enjoy!

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>