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.
|