On this page
curses.get_escdelay
Prev: curses.flushinp | Up: curses | Next: curses.get_tabsize
Rel: curses.assume_default_colors, curses.baudrate, curses.beep, curses.can_change_color
Ref: docs.python.org — curses.get_escdelay
Tags: #public #python3 #stdlib #curses
Import
import curses
from curses import get_escdelay
Signature & Overview
curses.get_escdelay()
Gets the curses ESCDELAY setting.
Usage
import curses
# Returns the Esc-key disambiguation delay in milliseconds (default is often 1000 ms)
assert callable(curses.get_escdelay)
Gotchas
- Call
curses.set_escdelay(25)so pressingEscin your TUI feels snappy instead of lagging a full second.
REPL Inspect
from curses import get_escdelay
help(get_escdelay)
Linked from
Related notes
- tuts/python3/stdlib_module/curses/flushinp Linked here; links to this page; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/get_tabsize 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