On this page
  1. curses.is_term_resized
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

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

REPL Inspect

from curses import is_term_resized
help(is_term_resized)

Linked from

Related notes