Jan 27, '10 07:30:00AM • Contributed by: kyanha
Use the cu command to get a (more-or-less) clear line. It's part of OSX's BSD heritage, and was originally used to allow UUCP batches to dial modems and link with each other. Here's how to use set up a connection:
sudo cu -s [bitrate] --nostop -l /dev/cu.[serialdevice]This could also be used with /dev/tty.[serialdevice], I believe, though I have not tried it.
Caveat: If you use the ~ key, make sure you type it twice. Also, the --nostop parameter disables cu interpreting XON/XOFF software flow control. If you don't use it, and the system gets a Control-S character for whatever reason, you will need to type Control-Q to get the output moving again. If you're using the Terminal, you know how to use man(1), so read the man page for cu(1).
