Serial Line IO

   

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.


       
    Top
     



    Practical Programming in Tcl and Tk
    Practical Programming in Tcl and Tk (4th Edition)
    ISBN: 0130385603
    EAN: 2147483647
    Year: 1999
    Pages: 478

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net