tty – Terminal utilities.
| Use Case | Command | Description |
|---|---|---|
| Enter cbreak mode | setcbreak(fd, when=2) | Put terminal into a cbreak mode. |
| Enter raw mode | setraw(fd, when=2) | Put terminal into a raw mode. |
https://docs.python.org/3.10/library/tty.html
The following documentation is automatically generated from the Python source files. It may be incomplete, incorrect or include features that are considered implementation detail and may vary between Python implementations. When in doubt, consult the module reference at the location listed above.
setcbreak(fd, when=2) — Put terminal into a cbreak mode.setraw(fd, when=2) — Put terminal into a raw mode.__all__ = ['setraw', 'setcbreak']
Location: /usr/lib/python3.10/tty.py
Generated by phpman v4.9.27 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-18 18:12 @216.73.216.114
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format