Tcl Source Code

View Ticket
Login
Ticket UUID: 3324195
Title: ignoring control lines on *nix ttys
Type: RFE Version: None
Submitter: egavilan Created on: 2011-06-21 19:32:26
Subsystem: 25. Channel System Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Open Last Modified: 2011-06-22 02:32:41
Resolution: None Closed By:
    Closed on:
Description:
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.
User Comments: egavilan added on 2011-06-22 02:32:41:

File Added - 415558: ignoredcd.diff

Attachments: