classification
Title: missing termios constants
Type: enhancement Stage: patch review
Components: Library (Lib) Versions: Python 3.3
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Rodolpho.Eckhardt, conorh, haypo
Priority: normal Keywords: patch

Created on 2010-01-13 20:02 by conorh, last changed 2011-11-19 14:10 by pitrou.

Files
File name Uploaded Description Edit
patch_termios_consts_issue7695.diff Rodolpho.Eckhardt, 2010-12-11 17:02 review
Messages (3)
msg97736 - (view) Author: Conor Hughes (conorh) Date: 2010-01-13 20:02
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'.
msg97749 - (view) Author: Conor Hughes (conorh) Date: 2010-01-14 02:35
As these aren't POSIX, changing to feature request.
msg123803 - (view) Author: Rodolpho Eckhardt (Rodolpho.Eckhardt) Date: 2010-12-11 17:02
Because these constants might not exist on all platforms, the patch uses ifdef's around them.
History
Date User Action Args
2011-11-19 14:10:01pitrousetnosy: + haypo

versions: - Python 2.7, Python 3.2
2011-11-19 14:06:55ezio.melottisetstage: needs patch -> patch review
versions: + Python 3.3
2010-12-11 17:02:35Rodolpho.Eckhardtsetfiles: + patch_termios_consts_issue7695.diff

nosy: + Rodolpho.Eckhardt
messages: + msg123803

keywords: + patch
2010-01-14 04:06:24brian.curtinsetpriority: normal
stage: needs patch
versions: + Python 2.7, Python 3.2, - Python 2.6, Python 2.5
2010-01-14 02:35:23conorhsettype: behavior -> enhancement
messages: + msg97749
2010-01-13 20:02:29conorhcreate