From 252cfde27b93ff78c94d9abb647162482c304355 Mon Sep 17 00:00:00 2001 From: bde Date: Sun, 13 Apr 1997 12:16:59 +0000 Subject: Fixed spelling of __set_ospeed (was _set_ospeed) and improved nearby English. --- lib/libtermcap/Makefile | 2 +- lib/libtermcap/termcap.3 | 29 +++++++++++++++-------------- 2 files changed, 16 insertions(+), 15 deletions(-) (limited to 'lib/libtermcap') diff --git a/lib/libtermcap/Makefile b/lib/libtermcap/Makefile index f4b338a..6f142e3 100644 --- a/lib/libtermcap/Makefile +++ b/lib/libtermcap/Makefile @@ -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} \ 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 @@ -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 -- cgit v1.1