summaryrefslogtreecommitdiffstats
path: root/lib/libtermcap
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-04-13 12:16:59 +0000
committerbde <bde@FreeBSD.org>1997-04-13 12:16:59 +0000
commit252cfde27b93ff78c94d9abb647162482c304355 (patch)
tree9df8c41d538bed5a384b0ac7195087a44c21a7b8 /lib/libtermcap
parent4fe66e591478b302035524f1562af66d976a9c3d (diff)
downloadFreeBSD-src-252cfde27b93ff78c94d9abb647162482c304355.zip
FreeBSD-src-252cfde27b93ff78c94d9abb647162482c304355.tar.gz
Fixed spelling of __set_ospeed (was _set_ospeed) and improved
nearby English.
Diffstat (limited to 'lib/libtermcap')
-rw-r--r--lib/libtermcap/Makefile2
-rw-r--r--lib/libtermcap/termcap.329
2 files changed, 16 insertions, 15 deletions
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 <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
OpenPOWER on IntegriCloud