On this page
curses.curs_set
Prev: curses.color_pair | Up: curses | Next: curses.def_prog_mode
Rel: curses.assume_default_colors, curses.baudrate, curses.beep, curses.can_change_color
Ref: docs.python.org — curses.curs_set
Tags: #public #python3 #stdlib #curses
Import
import curses
from curses import curs_set
Signature & Overview
curses.curs_set(visibility, /)
Set the cursor state.
Usage
import curses
# Sets cursor visibility: 0 (invisible), 1 (normal), 2 (very visible)
assert callable(curses.curs_set)
Gotchas
- Wrap in
try/except curses.error: Some minimal terminals rejectcurs_set(0).
REPL Inspect
from curses import curs_set
help(curs_set)
Linked from
Related notes
- tuts/python3/stdlib_module/curses/color_pair Linked here; links to this page; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/def_prog_mode 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/def_shell_mode shared tags: #curses, #stdlib