mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-23 23:35:20 +00:00
Updated resize_term() documentation. (SDL, overdue, and Win32 user, new.)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user