On this page
tty.cfmakecbreak
Up: tty | Next: tty.cfmakeraw
Rel: tty.cfmakeraw, tty.setcbreak, tty.setraw
Ref: docs.python.org — tty.cfmakecbreak
Tags: #public #python3 #stdlib #tty
Import
import tty
from tty import cfmakecbreak
Signature & Overview
tty.cfmakecbreak(mode)
Make termios mode cbreak.
Usage
import tty
# Python 3.12+ Unix-only: pure helper mutating a tcgetattr() mode list into cbreak mode
assert hasattr(tty, 'cfmakecbreak') or True
Gotchas
- Requires Python 3.12+: Lets you customize flags before calling
termios.tcsetattr().
REPL Inspect
from tty import cfmakecbreak
help(cfmakecbreak)
Linked from
Related notes
- tuts/python3/stdlib_module/tty/cfmakeraw Linked here; links to this page; shared tags: #stdlib, #tty
- tuts/python3/stdlib_module/tty/setcbreak Linked here; links to this page; shared tags: #stdlib, #tty
- tuts/python3/stdlib_module/tty/setraw Linked here; links to this page; shared tags: #stdlib, #tty
- tuts/python3/stdlib_module/tty Linked here; links to this page; shared tags: #stdlib
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib
- tuts/c/stdlib/assert/assert shared tags: #stdlib
- tuts/c/stdlib/assert/static_assert shared tags: #stdlib
- tuts/c/stdlib/ctype shared tags: #stdlib
- tuts/c/stdlib/ctype/isalpha shared tags: #stdlib