Download OS-9 C Language User Manual

Transcript
Chapter 5
The C Standard Library
tputs()
Output Capability String
Synopsis
#include <termcap.h>
extern
extern
extern
extern
char *BC;
char *UP;
char PC_;
short ospeed;
tputs(str, lines_affected,
char *str;
int lines_affected,
(*outfunc)();
outfunc)
/* pointer to capability string */
/* number of lines affected by operation */
/* pointer to output function */
Function
tputs() is
used to output the capability strings to the terminal. tputs()
decodes leading padding information from the str string.
lines_affected is the number of lines affected by the
lines_affected should be set to 1 if not applicable.
outfunc is
operation.
called by tputs() to output each successive character of the
str string.
ospeed should
contain the baud rate code as returned in _sgs_baud by the
_gs_opt() function. ospeed is used to calculate the number of fill characters
required when fill character delays are required. If ospeed is outside the
range of 1–16, no delays are attempted.
The PC_ variable should contain the pad character if it is other than
NULL (0).
5-201