bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 22/22] man/curs_initscr.3x: Fix erroneous statement and expand.


From: G. Branden Robinson
Subject: [PATCH 22/22] man/curs_initscr.3x: Fix erroneous statement and expand.
Date: Sat, 1 Jun 2024 15:24:56 -0500

You do not need to enable keypad mode in a window to receive the
KEY_RESIZE key code.

Describe how both the narrow and wide input retrieval functions report
resize events.
---
 man/curs_initscr.3x | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/man/curs_initscr.3x b/man/curs_initscr.3x
index 29e5425d9..a31d8d89e 100644
--- a/man/curs_initscr.3x
+++ b/man/curs_initscr.3x
@@ -308,9 +308,17 @@ .SS "Signal Handlers"
 This handles the window-size changes which were ignored in
 the standardization efforts.
 The handler sets a (signal-safe) variable
-which is later tested in \fB\%wgetch\fP(3X).
-If \fBkeypad\fP has been enabled for the corresponding window,
-\fBwgetch\fP returns the key symbol \fBKEY_RESIZE\fP.
+that is later tested by \fB\%wgetch\fP(3X) and \fB\%wget_wch\fP(3X).
+.B \%wgetch
+returns the key code
+.BR \%KEY_RESIZE "."
+.B \%wget_wch
+returns
+.B \%KEY_CODE_YES
+and sets its
+.I wch
+parameter to
+.BR \%KEY_RESIZE "."
 At the same time, \fBwgetch\fP calls \fBresizeterm\fP to adjust the
 standard screen \fBstdscr\fP,
 and update other data such as \fBLINES\fP and \fBCOLS\fP.
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]