On this page
curses.is_term_resized
Prev: curses.intrflush | Up: curses | Next: curses.isendwin
Rel: curses.assume_default_colors, curses.baudrate, curses.beep, curses.can_change_color
Ref: docs.python.org — curses.is_term_resized
Tags: #public #python3 #stdlib #curses
Import
import curses
from curses import is_term_resized
Signature & Overview
curses.is_term_resized(nlines, ncols, /)
Return True if resize_term() would modify the window structure, False otherwise.
Usage
import curses
# Checks if the terminal dimensions differ from (nlines, ncols)
assert callable(curses.is_term_resized)
Gotchas
- Use when handling
curses.KEY_RESIZEalongsidecurses.update_lines_cols().
REPL Inspect
from curses import is_term_resized
help(is_term_resized)
Linked from
Related notes
- tuts/python3/stdlib_module/curses/intrflush Linked here; links to this page; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/isendwin 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