Updated resize_term() documentation. (SDL, overdue, and Win32 user, new.)

This commit is contained in:
William McBrine
2017-12-06 21:48:21 -05:00
parent f52f0e354a
commit ae32ac4888

View File

@@ -55,14 +55,14 @@ initscr
screen to the given size. When called with (0, 0), it merely
adjusts the internal structures to match the current size after
the screen is resized by the user. On the currently supported
platforms, this functionality is mutually exclusive: X11 allows
user resizing, while DOS, OS/2 and Win32 allow programmatic
resizing. If you want to support user resizing, you should check
for getch() returning KEY_RESIZE, and/or call is_termresized()
at appropriate times; if either condition occurs, call
resize_term(0, 0). Then, with either user or programmatic
resizing, you'll have to resize any windows you've created, as
appropriate; resize_term() only handles stdscr and curscr.
platforms, SDL, Win32, and X11 allow user resizing, while DOS,
OS/2, SDL and Win32 allow programmatic resizing. If you want to
support user resizing, you should check for getch() returning
KEY_RESIZE, and/or call is_termresized() at appropriate times;
if either condition occurs, call resize_term(0, 0). Then, with
either user or programmatic resizing, you'll have to resize any
windows you've created, as appropriate; resize_term() only
handles stdscr and curscr.
is_termresized() returns TRUE if the curses screen has been
resized by the user, and a call to resize_term() is needed.