HP 9000 Series 300 Tutorials Manual page 245

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

Advertisement

Description of Curses Routines (Continued)
doupdateO
wnoutrefresh(win)
pnoutrefresh
(pad, ... )
draino(ms)
echoO
noechoO
wnoutrefresh (or pnoutrefresh) and doupdate essentially
divide wrefresh into two independent functions that can
be called separately for more efficient handling of multiple
output operations to windows and pads. In normal
operation, wrefresh (
win)
calls wnoutrefresh (
win)
to copy the named window to the virtual screen, then
uses doupdate to update the physical screen to match
the virtual screen. When outputting multiple windows,
wnoutrefresh
(win)
can be used successively, once for each
window; followed by a single doupdate
0
to transfer the
new screen to the terminal, probably with fewer characters
transmitted. pnoutrefresh is used similarly when writing
to pads.
Suspends program operation until the output queue has
been reduced sufficiently ("drained") so that the remaining
characters can be transmitted in not more than ms
milliseconds. For example, draino(50) at 1200 baud would
suspend program execution until no more than 6 characters
remain to be sent (6 characters
@
1200 baud require about
50 ms transmit time). This routine is used to keep the
program (and thus the keyboard) from getting ahead of the
screen. If the operating system does not support the I/O
controls (ioctls) that are needed to implement draino,
the value ERR is returned; otherwise OK is returned.
Enables or disables echoing of characters by getch through
the specified window and back to the terminal as each
character is typed on the keyboard and subsequently
processed by getch. Default is echo (enabled). In some
interactive programs, it is preferable to suppress echoing
by getch (noecho), then let the program place incoming
characters in a controlled area of the screen or not return
them at all, as needs dictate.
Curses Routines
2-9

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hp 9000 series 800

Table of Contents