On this page
curses.getsyx
Prev: curses.getmouse | Up: curses | Next: curses.getwin
Rel: curses.assume_default_colors, curses.baudrate, curses.beep, curses.can_change_color
Ref: docs.python.org — curses.getsyx
Tags: #public #python3 #stdlib #curses
Import
import curses
from curses import getsyx
Signature & Overview
curses.getsyx()
Return the current coordinates of the virtual screen cursor.
Usage
import curses
# Returns current virtual screen cursor coordinates (y, x)
assert callable(curses.getsyx)
Gotchas
- Coordinates are
(y, x)(row, col)—not(x, y).
REPL Inspect
from curses import getsyx
help(getsyx)
Linked from
Related notes
- tuts/python3/stdlib_module/curses/getmouse Linked here; links to this page; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/getwin 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