path: root/man/curs_get_wch.3x
diff options
authorBaptiste Daroussin <bapt@FreeBSD.org>2020-02-07 08:36:41 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2020-02-07 08:36:41 +0000
commitf0179cb6083cc92e5947ae56e6a0a5c5328aead0 (patch)
treebcee0ba9c2149b71f0bfc036df1e61e3105bf980 /man/curs_get_wch.3x
parentcea297eb34d2361e79529034397465068ae34ecd (diff)
Vendor import ncurses 6.1-20200118vendor/ncurses/6.1-20200118
Notes: svn path=/vendor/ncurses/dist/; revision=357645 svn path=/vendor/ncurses/6.1-20200118/; revision=357646; tag=vendor/ncurses/6.1-20200118
Diffstat (limited to 'man/curs_get_wch.3x')
1 files changed, 29 insertions, 10 deletions
diff --git a/man/curs_get_wch.3x b/man/curs_get_wch.3x
index df9bc6a6e6c6..52c57c93baf4 100644
--- a/man/curs_get_wch.3x
+++ b/man/curs_get_wch.3x
@@ -1,5 +1,5 @@
-.\" Copyright (c) 2002-2010,2012 Free Software Foundation, Inc. *
+.\" Copyright (c) 2002-2018,2019 Free Software Foundation, Inc. *
.\" *
.\" Permission is hereby granted, free of charge, to any person obtaining a *
.\" copy of this software and associated documentation files (the *
@@ -26,14 +26,26 @@
.\" authorization. *
-.\" $Id: curs_get_wch.3x,v 1.8 2012/11/03 23:03:59 tom Exp $
+.\" $Id: curs_get_wch.3x,v 1.12 2019/11/30 21:06:30 tom Exp $
.TH curs_get_wch 3X ""
+.hy 0
+.ie \n(.g .ds `` \(lq
+.el .ds `` ``
+.ie \n(.g .ds '' \(rq
+.el .ds '' ''
+.de bP
+.ie n .IP \(bu 4
+.el .IP \(bu 2
\fBunget_wch\fR \- get (or push back) a wide character from curses terminal keyboard
\fB#include <curses.h>\fR
@@ -76,13 +88,8 @@ If \fBkeypad\fR is enabled,
these functions respond to
the pressing of a function key by setting the object pointed to by
-to the corresponding
-value defined
-and returning
+to the keycode assigned to the function key,
+and returning \fBKEY_CODE_YES\fR.
If a character (such as escape) that could be the
beginning of a function key is received, curses sets a timer.
If the remainder
@@ -92,6 +99,18 @@ For this
reason, many terminals experience a delay between the time a user presses
the escape key and the time the escape is returned to the program.
+The keycodes returned by these functions are the same as those
+returned by \fBwgetch\fP:
+The predefined function
+keys are listed in \fB<curses.h>\fR as macros with values outside the range
+of 8-bit characters.
+Their names begin with \fBKEY_\fR.
+Other (user-defined) function keys
+which may be defined using \fBdefine_key\fP(3X) have no names,
+but also are expected to have values outside the range of 8-bit characters.
function pushes the wide character
@@ -153,7 +172,7 @@ returns
Otherwise, the function returns
-Functions with a "mv" prefix first perform a cursor movement using
+Functions with a \*(``mv\*('' prefix first perform a cursor movement using
\fBwmove\fP, and return an error if the position is outside the window,
or if the window pointer is null.