On this page
curses.halfdelay
Prev: curses.getwin | Up: curses | Next: curses.has_colors
Rel: curses.assume_default_colors, curses.baudrate, curses.beep, curses.can_change_color
Ref: docs.python.org — curses.halfdelay
Tags: #public #python3 #stdlib #curses
Import
import curses
from curses import halfdelay
Signature & Overview
curses.halfdelay(tenths, /)
Enter half-delay mode.
Usage
import curses
# Like cbreak(), but getch() waits up to `tenths` (1..255) tenths of a second before raising
assert callable(curses.halfdelay)
Gotchas
- Argument is in tenths of a second (1..255):
halfdelay(5)= 0.5 seconds.
REPL Inspect
from curses import halfdelay
help(halfdelay)
Linked from
Related notes
- tuts/python3/stdlib_module/curses/getwin Linked here; links to this page; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/has_colors 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