[New-bugs-announce] [issue7695] missing termios constants

Conor Hughes report at bugs.python.org
Wed Jan 13 21:02:30 CET 2010


New submission from Conor Hughes <conorh at berkeley.edu>:

Module termios is missing some constants useful for handling control characters under Mac OS X (and Solaris, and probably BSD but I don't have a pure BSD system to test against).

In particular, these systems support a control character "DSUSP" (which is similar to SUSP), but there is no provided symbol for the index into the cc array to use. The correct value for the proposed termios.VDSUSP would be 11 on MacOS and Solaris. I'm no Linux wizard but I don't believe it has this control character.

In addition, MacOS supports a control character STATUS, and the correct value for the proposed termios.VSTATUS would be 18.

Likewise, _POSIX_VDISABLE (or some similar identifier) is missing from the module. I believe the correct value on Solaris would be '\x00', MacOS '\xff', Linux '\x00'.

----------
components: Library (Lib)
messages: 97736
nosy: conorh
severity: normal
status: open
title: missing termios constants
type: behavior
versions: Python 2.5, Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7695>
_______________________________________


More information about the New-bugs-announce mailing list