Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2011-06-22
02:32 • Ticket [3324195fff] ignoring control lines on *nix ttys status still Open wi... artifact: 8432fa424d user: egavilan
02:32 • Add attachment ignoredcd.diff to ticket [3324195fff] artifact: faae42a6fe user: egavilan
2011-06-21
19:32 • New ticket [3324195fff] ignoring control lines on *nix ttys. artifact: 272fb1487e user: egavilan

ignoring control lines on *nix ttys

Open3324195fffffffffffffffffffffffffffffffffCreated 15 years agoUpdated 15 years ago
Descriptionplain2011-06-21 19:32:26
When working with serial ports on *nix is sometimes desirable to disable modem control lines. This is the case when the OS driver expects the DCD line to become active before allowing further IO. Since many commercial cables only have three wires, disabling the DCD checking is desirable.
Currently there's no way to do this from Tcl, and the only solution is exec'ing stty with suitable flags.

Attached patch adds a new option to tty channels, "-ignoredcd", which can be set to a boolean flag. The option can be set and queried. It should work with any OS that uses the termios interface (linux, *bsd, solaris).
The modification was tested on NetBSD and it notably improves the usability of serial ports based channels when the DCD line is absent.
egavilanplain2011-06-22 02:32:41
File Added - 415558: ignoredcd.diff
Log in (anonymous is fine) to add a comment.

Attachments: