HP-UX Reference (11i v1 05/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 applica-
tion. This achieves the same effect as canonical-
mode input processing 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 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 processing (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, which-
ever 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 applica-
tion) 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 initial-
ise Curses and restores these settings when endwin() is called. The initial input mode for Curses opera-
tions 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 application
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 application.
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.
Section 3124 Hewlett-Packard Company 11 HP-UX 11i Version 1: September 2005