HP 9000 Series 300 Tutorials Manual page 261

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

Advertisement

Terminfo Routines
Description of Terminfo Routines
delay_output (ms)
putp(str)
setupterm (term,
filen um, errret)
Inserts a delay into the output stream for the specified
number of milliseconds by inserting sufficient pad
characters to effect the delay. This should not be used
in place of a high-resolution sleep, but rather to slow
down or hold off the output. Due to system buffering, it
is unlikely that a delay can result in a process actually
sleeping. ms should not exceed about 500 because of the
large number of pad characters used to produce such
delays.
Outputs a string capability without use of an affcnt (see
tputs). The string is sent to putchar with an affcnt of
1. It is used in simple applications that do not require the
output processing capability of tputs.
Initializes the specified terminal. term is the character
string representing the name or model of the terminal;
filenum is the HP-UX file descriptor of the terminal
being used for output; errret is a pointer to the integer in
which a success/failure indication is returned. The values
returned can be: 1 (initialize complete); -1 (terminf
°
database not found); or 0 (no such terminal).
If 0 is given as the value of term, the default value of
TERM
is obtained from the enviroment. errret can be specified
as 0 if no error code is wanted. If errret is default (0), and
something goes wrong, setupterm prints an appropriate
error message and exits rather than returning. Thus, a
simple program can call setupterm(O,l,O) and not provide
for initialization errors.
If the environment variable
TERMINFO
is set to a path
name, setupterm checks for a compiled terminfo
description of the terminal under that path before checking
jete/term. Otherwise, only jete/term is checked.
Curses Routines
2-25

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hp 9000 series 800

Table of Contents