diff options
Diffstat (limited to 'lib/libtermcap/termcap.3')
-rw-r--r-- | lib/libtermcap/termcap.3 | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/lib/libtermcap/termcap.3 b/lib/libtermcap/termcap.3 index 3867f70..d6d2656 100644 --- a/lib/libtermcap/termcap.3 +++ b/lib/libtermcap/termcap.3 @@ -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 |