On this page
curses.intrflush
Prev: curses.initscr | Up: curses | Next: curses.is_term_resized
Rel: curses.assume_default_colors, curses.baudrate, curses.beep, curses.can_change_color
Ref: docs.python.org — curses.intrflush
Tags: #public #python3 #stdlib #curses
Import
import curses
from curses import intrflush
Signature & Overview
curses.intrflush(flag, /)
Control flushing of the output buffer when an interrupt key is pressed.
Usage
import curses
# Controls whether interrupt keys (Ctrl-C) flush pending terminal output
assert callable(curses.intrflush)
Gotchas
- Pass
Truefor faster Ctrl-C response,Falseto preserve screen sync.
REPL Inspect
from curses import intrflush
help(intrflush)
Linked from
Related notes
- tuts/python3/stdlib_module/curses/initscr Linked here; links to this page; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/is_term_resized 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/assume_default_colors Linked here; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/baudrate Linked here; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/beep Linked here; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/can_change_color Linked here; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/cbreak shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/color_content shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/color_pair shared tags: #curses, #stdlib