<HTML>
-<BODY BGCOLOR="#99ccbb" TEXT="#000000" LINK="#4060b0" VLINK="#000080" ALINK="#ff4040">
+<BODY>
<PRE>
<STRONG>getch</STRONG>, <STRONG>wgetch</STRONG>, <STRONG>mvgetch</STRONG>, <STRONG>mvwgetch</STRONG>, <STRONG>ungetch</STRONG> - get (or push
back) characters from <STRONG>curses</STRONG> terminal keyboard
</PRE>
<H2>SYNOPSIS</H2><PRE>
- <STRONG>#include</STRONG> <STRONG><curses.h></STRONG>
+ <STRONG>#include</STRONG> <STRONG><curses.h></STRONG>
<STRONG>int</STRONG> <STRONG>getch(void);</STRONG>
<STRONG>int</STRONG> <STRONG>wgetch(WINDOW</STRONG> <STRONG>*win);</STRONG>
If <STRONG>keypad</STRONG> is <STRONG>TRUE</STRONG>, and a function key is pressed, the
token for that function key is returned instead of the raw
characters. Possible function keys are defined in
- <STRONG><curses.h></STRONG> as macros with values outside the range of
+ <STRONG><curses.h></STRONG> as macros with values outside the range of
8-bit characters whose names begin with <STRONG>KEY_.</STRONG> Thus, a
variable intended to hold the return value of a function
key must be of short size or larger.
<STRONG>Function</STRONG> <STRONG>Keys</STRONG>
- The following function keys, defined in <STRONG><curses.h></STRONG>, might
+ The following function keys, defined in <STRONG><curses.h></STRONG>, might
be returned by <STRONG>getch</STRONG> if <STRONG>keypad</STRONG> has been enabled. Note
that not all of these are necessarily supported on any
particular terminal.
KEY_BREAK/Break key KEY_DOWN/The four arrow keys ...
KEY_UP KEY_LEFT KEY_RIGHT KEY_HOME/Home key (upward+left
arrow) KEY_BACKSPACE/Backspace KEY_F0/T{ Function keys;
- space for 64 keys is reserved. T} KEY_F(<EM>n</EM>)/T{ For 0 <= <EM>n</EM>
- <= 63 T} KEY_DL/Delete line KEY_IL/Insert line
+ space for 64 keys is reserved. T} KEY_F(<EM>n</EM>)/T{ For 0 <= <EM>n</EM>
+ <= 63 T} KEY_DL/Delete line KEY_IL/Insert line
KEY_DC/Delete character KEY_IC/Insert char or enter insert
mode KEY_EIC/Exit insert char mode KEY_CLEAR/Clear screen
KEY_EOS/Clear to end of screen KEY_EOL/Clear to end of
Note that <STRONG>getch</STRONG>, <STRONG>mvgetch</STRONG>, and <STRONG>mvwgetch</STRONG> may be macros.
Historically, the set of keypad macros was largely defined
- by the extremely function-key-rich keyboard of the AT&T
+ by the extremely function-key-rich keyboard of the AT&T
7300, aka 3B1, aka Safari 4. Modern personal computers
usually have only a small subset of these. IBM PC-style
consoles typically support little more than <STRONG>KEY_UP</STRONG>,