HP 9000 Series 300 Tutorials Manual page 227

Device i/o and user interfacing hp-ux concepts and tutorials
Hide thumbs Also See for HP 9000 Series 300:
Table of Contents

Advertisement

• idlok(win,boolean_flag) ,
when set, allows curses to use the
insert / delete line features of the terminal if they are available. This
feature tends to be visually annoying if used in applications where it
is not really needed. Insert/delete character capabilities are always
considered by curses, and are not related to insert/delete line
considerations.
• keypad (win, boolean_flag), when set, enables handling of special keys
from the terminal key board as single values instead of character
sequences.
• leaveok( win, boolean_flag) , when set, allows curses to ignore cursor
position and relocation at the end of an operation. This feature helps
simplify program operation when the cursor is not used or cursor
position is not important.
• meta (win, boolean_flag) , when set, handles characters from the (getch)
function as 8-bit entities instead of the usual seven. However, this
feature has no value if other programs and networks interacting with
the data can only pass 7-bit characters.
This feature is useful for applications where an extended non-text
character set is needed and the terminal has a meta shift key available.
Curses takes whatever measures are needed to handle the 8-bit input,
including the use of raw mode, if necessary. In most cases, the character
size is set to 8, parity checking disabled, and 8th-bit stripping is
disabled. For the data to continue unaltered, all programs using it must
also be capable of handling 8-bit character codes.
• nodelay (win, boolean_flag) , when set, makes getch a non-blocking call.
When enabled, getch returns immediately with the value -1 if no
input is ready. If not enabled, the program hangs until a terminal key is
pressed.
• intrflush( win, boolean_flag) , when set, flushes all output in the
tty driver queue if an interrupt key (interrupt, quit, or suspend, if
available on the system) is pressed on the terminal key board. While
this capability provides faster interrupt response, the flush destroys the
representative relationship between curser and the current physical
display contents.
Using Curses and Terminfo
1-29

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hp 9000 series 800

Table of Contents