You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'.
Activity
conorh commentedon Jan 13, 2010
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'.
conorh commentedon Jan 14, 2010
As these aren't POSIX, changing to feature request.
RodolphoEckhardt commentedon Dec 11, 2010
Because these constants might not exist on all platforms, the patch uses ifdef's around them.
akuchling commentedon Nov 3, 2012
Patch seems clearly correct; compiles & works on MacOS. We could just apply this.
tiran commentedon Nov 4, 2012
The patch looks good to me but it's missing doc updates.
pythongh-51944: Add some macOS constants to termios
gh-51944: Add missing macOS constants to termios (#112823)
ronaldoussoren commentedon Dec 7, 2023
#112823 adds all missing public symbols, but does not add
_POSIX_VDISABLEbecause that's a private name.pythongh-51944: fix type and missing addition in pythongh-112823
gh-51944: fix type and missing addition in gh-112823 (#112996)
pythongh-51944: Add missing macOS constants to termios (python#112823)
pythongh-51944: fix type and missing addition in pythongh-112823 (pyt…
pythongh-51944: Add missing macOS constants to termios (python#112823)
pythongh-51944: fix type and missing addition in pythongh-112823 (pyt…