Fixed spelling of __set_ospeed (was _set_ospeed) and improved

nearby English.
This commit is contained in:
Bruce Evans 1997-04-13 12:16:59 +00:00
parent 4a127b0ff9
commit 4b1753527e
2 changed files with 16 additions and 15 deletions

View File

@ -9,7 +9,7 @@ SRCS= termcap.c tgoto.c tputs.c tparm.c tospeed.c
MAN3= termcap.3
MLINKS= termcap.3 tgetent.3 termcap.3 tgetflag.3 termcap.3 tgetnum.3 \
termcap.3 tgetstr.3 termcap.3 tgoto.3 termcap.3 tputs.3 \
termcap.3 tparm.3 termcap.3 _set_ospeed.3
termcap.3 tparm.3 termcap.3 __set_ospeed.3
LINKS= ${LIBDIR}/libtermcap.a ${LIBDIR}/libtermlib.a
.if !defined(NOPIC)
LINKS+= ${SHLIBDIR}/libtermcap.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \

View File

@ -42,7 +42,7 @@
.Nm tgoto ,
.Nm tputs ,
.Nm tparm ,
.Nm _set_ospeed
.Nm __set_ospeed
.Nd terminal independent operation routines
.Sh SYNOPSIS
.Fd #include <termcap.h>
@ -65,7 +65,7 @@
.Ft char *
.Fn tparm "const char *cp" "..."
.Ft void
.Fn _set_ospeed "long speed"
.Fn __set_ospeed "long speed"
.Sh DESCRIPTION
These functions extract and use capabilities from a terminal capability data
base, usually
@ -232,17 +232,6 @@ not applicable,
.Fa outc
is a routine which is called with each character in turn.
The external variable
.Va ospeed
should contain the output speed of the terminal as encoded by
.Xr stty 3 .
The
.Fn _set_ospeed
functions converts any (not exactly matched only) numeric speed to
.Xr stty 3
encoded speed and set
.Va ospeed
variable.
The external variable
.Va PC
should contain a pad character to be used (from the
.SY pc
@ -250,13 +239,25 @@ capability)
if a null
.Pq Sy ^@
is inappropriate.
The external variable
.Va ospeed
should contain the output speed of the terminal as encoded by
.Xr stty 3 .
The
.Fn __set_ospeed
function converts the speed in cps
.Fa speed
to the closest
.Xr stty 3
encoded speed and stores the result in
.Va ospeed .
.Pp
The
.Fn tparm
function
instantiates the string
.Fa cp
with given parameters.
with the given parameters.
A pointer is returned which points to
the result of
.Fa cp