diff options
author | ache <ache@FreeBSD.org> | 1995-08-04 06:39:55 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-08-04 06:39:55 +0000 |
commit | 3631ae6f9fa6aab4f69713033cb5e239255f334c (patch) | |
tree | 9966d69ef185705cb895e2b15d43330077c512f7 /lib/libtermcap/termcap.3 | |
parent | 060942c07e02758de7d13b7001005b172a7650f7 (diff) | |
download | FreeBSD-src-3631ae6f9fa6aab4f69713033cb5e239255f334c.zip FreeBSD-src-3631ae6f9fa6aab4f69713033cb5e239255f334c.tar.gz |
Add non-standard function: _set_ospeed(speed)
Basically all termios+termcap pgms needs it.
It set ospeed variable using nearest-matched stty speeds,
which helps termcap pgms works with non-fixed termios speeds
and not duplicate ospeed switch into every pgm.
Also it isn't standard function, its source code is too big to include it
in whole to every termcap+termios pgm.
Diffstat (limited to 'lib/libtermcap/termcap.3')
-rw-r--r-- | lib/libtermcap/termcap.3 | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/libtermcap/termcap.3 b/lib/libtermcap/termcap.3 index 861bc24..3867f70 100644 --- a/lib/libtermcap/termcap.3 +++ b/lib/libtermcap/termcap.3 @@ -41,7 +41,8 @@ .Nm tgetstr , .Nm tgoto , .Nm tputs , -.Nm tparm +.Nm tparm , +.Nm _set_ospeed .Nd terminal independent operation routines .Sh SYNOPSIS .Fd #include <termcap.h> @@ -63,6 +64,8 @@ .Fn tputs "const char *cp" "int affcnt" "int (*outc)(int)" .Ft char * .Fn tparm "const char *cp" "..." +.Ft void +.Fn _set_ospeed "long speed" .Sh DESCRIPTION These functions extract and use capabilities from a terminal capability data base, usually @@ -232,6 +235,13 @@ 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 |