On this page
curses.cbreak
Prev: curses.can_change_color | Up: curses | Next: curses.color_content
Rel: curses.assume_default_colors, curses.baudrate, curses.beep, curses.can_change_color
Ref: docs.python.org — curses.cbreak
Tags: #public #python3 #stdlib #curses
Import
import curses
from curses import cbreak
Signature & Overview
curses.cbreak(flag=True, /)
Enter cbreak mode.
Usage
import curses
# Disables line buffering so keypresses arrive immediately while keeping Ctrl-C working
assert callable(curses.cbreak)
Gotchas
- Handled automatically by
curses.wrapper(): Unlikeraw(),cbreak()still letsCtrl-CraiseKeyboardInterrupt.
REPL Inspect
from curses import cbreak
help(cbreak)
Linked from
Related notes
- tuts/python3/stdlib_module/curses/assume_default_colors Linked here; links to this page; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/baudrate Linked here; links to this page; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/beep Linked here; links to this page; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/can_change_color Linked here; links to this page; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/color_content Linked here; links to this page; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/curses/color_pair shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/curs_set shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/def_prog_mode shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/def_shell_mode shared tags: #curses, #stdlib