@@ -296,6 +296,12 @@ The module :mod:`curses` defines the following functions:
296296 cause the interpreter to exit.
297297
298298
299+ .. function :: is_term_resized(nlines, ncols)
300+
301+ Return ``True `` if :func: `resize_term ` would modify the window structure,
302+ ``False `` otherwise.
303+
304+
299305.. function :: isendwin()
300306
301307 Return ``True `` if :func: `endwin ` has been called (that is, the curses library has
@@ -465,6 +471,35 @@ The module :mod:`curses` defines the following functions:
465471 :func: `def_shell_mode `.
466472
467473
474+ .. function :: resetty()
475+
476+ Restore the state of the terminal modes to what it was at the last call to
477+ :func: `savetty `.
478+
479+
480+ .. function :: resize_term(nlines, ncols)
481+
482+ Backend function used by :func: `resizeterm `, performing most of the work;
483+ when resizing the windows, :func: `resize_term ` blank-fills the areas that are
484+ extended. The calling application should fill in these areas with
485+ appropriate data. The :func: `resize_term ` function attempts to resize all
486+ windows. However, due to the calling convention of pads, it is not possible
487+ to resize these without additional interaction with the application.
488+
489+
490+ .. function :: resizeterm(nlines, ncols)
491+
492+ Resize the standard and current windows to the specified dimensions, and
493+ adjusts other bookkeeping data used by the curses library that record the
494+ window dimensions (in particular the SIGWINCH handler).
495+
496+
497+ .. function :: savetty()
498+
499+ Save the current state of the terminal modes in a buffer, usable by
500+ :func: `resetty `.
501+
502+
468503.. function :: setsyx(y, x)
469504
470505 Set the virtual screen cursor to *y *, *x *. If *y * and *x * are both -1, then
@@ -798,6 +833,11 @@ the following methods:
798833 Return a tuple ``(y, x) `` of co-ordinates of upper-left corner.
799834
800835
836+ .. method :: window.getbkgd()
837+
838+ Return the given window's current background character/attribute pair.
839+
840+
801841.. method :: window.getch([y, x])
802842
803843 Get a character. Note that the integer returned does *not * have to be in ASCII
@@ -1043,6 +1083,14 @@ the following methods:
10431083 *sminrow *, or *smincol * are treated as if they were zero.
10441084
10451085
1086+ .. method :: window.resize(nlines, ncols)
1087+
1088+ Reallocate storage for a curses window to adjust its dimensions to the
1089+ specified values. If either dimension is larger than the current values, the
1090+ window's data is filled with blanks that have the current background
1091+ rendition (as set by :meth: `bkgdset `) merged into them.
1092+
1093+
10461094.. method :: window.scroll([lines=1])
10471095
10481096 Scroll the screen or scrolling region upward by *lines * lines.
0 commit comments