-
+
curs_getch 3x
-
+
@@ -56,9 +57,13 @@
intgetch(void);intwgetch(WINDOW*win);
+
intmvgetch(inty,intx);intmvwgetch(WINDOW*win,inty,intx);
+
intungetch(intch);
+
+ /* extension */
inthas_key(intch);
@@ -175,11 +180,11 @@
KEY_ENTER Enter or send
KEY_SRESET Soft (partial) reset
KEY_RESET Reset or hard reset
+
KEY_PRINT Print or copy
KEY_LL Home down or bottom (lower left)
KEY_A1 Upper left of keypad
KEY_A3 Upper right of keypad
-
KEY_B2 Center of keypad
KEY_C1 Lower left of keypad
KEY_C3 Lower right of keypad
@@ -283,10 +288,10 @@
other than ERR (OK in the case of ungetch) upon successful completion.
ungetch
- returns ERR if there is no more room in the FIFO.
+ returns ERR if there is no more room in the FIFO.
wgetch
- returns ERR if the window pointer is null, or if its timeout
+ returns ERR if the window pointer is null, or if its timeout
expires without having any data, or if the execution was inter-
rupted by a signal (errno will be set to EINTR).
@@ -362,7 +367,7 @@
Programmers concerned about portability should be prepared for either
of two cases: (a) signal receipt does not interrupt getch; (b) signal
- receipt interrupts getch and causes it to return ERR with errno set to
+ receipt interrupts getch and causes it to return ERR with errno set to
EINTR.
The has_key function is unique to ncurses. We recommend that any code
@@ -370,8 +375,8 @@