HP-UX Reference (11i v2 04/09) - 3 Library Functions A-M (vol 6)
c
curses_intro(3X) curses_intro(3X)
(X/Open CURSES)
Input Mode Effect
This achieves normal line-at-a-time processing with
all special characters handled outside the application.
This achieves the same effect as canonical-mode input
processing as specified in the X/Open System Inter-
face Definitions, Issue 4, Version 2 specification . The
state of the ISIG and IXON flags are not changed
upon entering this mode by calling
cbreak(), and are
set upon entering this mode by calling
noraw().
Cooked Mode
The implementation supports erase and kill charac-
ters from any supported locale, no matter what the
width of the character is.
Characters typed by the user are immediately avail-
able to the application and Curses does not perform
special processing on either the erase character or the
kill character. An application can select cbreak mode
to do its own line editing but to let the abort character
be used to abort the task. This mode achieves the
same effect as non-canonical-mode, Case B input pro-
cessing (with MIN set to 1 and ICRNL cleared) as
specified in the X/Open System Interface Definitions,
Issue 4, Version 2 specification. The state of the ISIG
and IXON flags are not changed upon entering this
mode.
cbreak Mode
The effect is the same as cbreak, except that input
functions wait until a character is available or an
interval defined by the application elapses, whichever
comes first. This mode achieves the same effect as
non-canonical-mode, Case C input processing (with
TIME set to the value specified by the application) as
specified in the X/Open System Interface Definitions,
Issue 4, Version 2 specification . The state of the ISIG
and IXON flags are not changed upon entering this
mode.
Half-Delay Mode
Raw mode gives the application maximum control
over terminal input. The application sees each char-
acter as it is typed. This achieves the same effect as
non-canonical mode, Case D input processing as
specified in the X/Open System Interface Definitions,
Issue 4, Version 2 specification . The ISIG and IXON
flags are cleared upon entering this mode.
Raw Mode
The terminal interface settings are recorded when the process calls initscr() or newterm() to ini-
tialise Curses and restores these settings when endwin() is called. The initial input mode for Curses
operations is unspecified unless the implementation supports Enhanced Curses compliance, in which the
initial input mode is cbreak mode.
The behaviour of the BREAK key depends on other bits in the display driver that are not set by Curses.
Delay Mode
Two mutually-exclusive delay modes specify how quickly certain Curses functions return to the applica-
tion when there is no terminal input waiting when the function is called:
No Delay The function fails.
Delay The application waits until the implementation passes text through to the applica-
tion. If cbreak or Raw Mode is set, this is after one character. Otherwise, this is
after the first <newline> character, end-of-line character, or end-of-file character.
The effect of No Delay Mode on function key processing is unspecified.
HP-UX 11i Version 2: September 2004 − 11 − Hewlett-Packard Company Section 3−−177