O'Reilly logo

Practical Programming in Tcl & Tk, Third Edition by Brent B. Welch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Serial Line I/O

Support for serial line devices was added to fconfigure. The -mode argument specifies the baud rate, parity setting, and the number of data and stop bits. The -mode option to fconfigure is described on page 224.

Windows has some special device names that always connect you to the serial line devices when you use open. They are com1 and com2. UNIX has names for serial devices in /dev. Interactive applications can open the current terminal with /dev/tty.

As of this writing there is no way to open serial devices on the Macintosh. I expect a new serial command for this purpose, or possibly a flag to open.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required