Previous section   Next section

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

Table of Contents
Chapter 51.  Tcl/Tk 8.0

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.

      Previous section   Next section