tty.4 (117011) | tty.4 (119893) |
---|---|
1.\" Copyright (c) 1991, 1992, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)tty.4 8.3 (Berkeley) 4/19/94 | 1.\" Copyright (c) 1991, 1992, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)tty.4 8.3 (Berkeley) 4/19/94 |
33.\" $FreeBSD: head/share/man/man4/tty.4 117011 2003-06-28 23:53:39Z ru $ | 33.\" $FreeBSD: head/share/man/man4/tty.4 119893 2003-09-08 19:57:22Z ru $ |
34.\" 35.Dd August 14, 1992 36.Dt TTY 4 37.Os 38.Sh NAME 39.Nm tty 40.Nd general terminal interface 41.Sh SYNOPSIS --- 121 unchanged lines hidden (view full) --- 163 ioctl(0, TIOCSETD, &ldisc); 164.Ed 165.Ss Terminal File Request Descriptions 166.Bl -tag -width TIOCGWINSZ 167.It Dv TIOCSETD Fa int *ldisc 168Change to the new line discipline pointed to by 169.Fa ldisc . 170The available line disciplines are listed in | 34.\" 35.Dd August 14, 1992 36.Dt TTY 4 37.Os 38.Sh NAME 39.Nm tty 40.Nd general terminal interface 41.Sh SYNOPSIS --- 121 unchanged lines hidden (view full) --- 163 ioctl(0, TIOCSETD, &ldisc); 164.Ed 165.Ss Terminal File Request Descriptions 166.Bl -tag -width TIOCGWINSZ 167.It Dv TIOCSETD Fa int *ldisc 168Change to the new line discipline pointed to by 169.Fa ldisc . 170The available line disciplines are listed in |
171.Aq Pa sys/ttycom.h | 171.In sys/ttycom.h |
172and currently are: 173.Pp 174.Bl -tag -width NETGRAPHDISC -compact 175.It TTYDISC 176Termios interactive line discipline. 177.It TABLDISC 178Tablet line discipline. 179.It SLIPDISC --- 128 unchanged lines hidden (view full) --- 308Clear exclusive use of the terminal. 309Further opens are permitted. 310.It Dv TIOCFLUSH Fa int *what 311If the value of the int pointed to by 312.Fa what 313contains the 314.Dv FREAD 315bit as defined in | 172and currently are: 173.Pp 174.Bl -tag -width NETGRAPHDISC -compact 175.It TTYDISC 176Termios interactive line discipline. 177.It TABLDISC 178Tablet line discipline. 179.It SLIPDISC --- 128 unchanged lines hidden (view full) --- 308Clear exclusive use of the terminal. 309Further opens are permitted. 310.It Dv TIOCFLUSH Fa int *what 311If the value of the int pointed to by 312.Fa what 313contains the 314.Dv FREAD 315bit as defined in |
316.Aq Pa sys/file.h , | 316.In sys/file.h , |
317then all characters in the input queue are cleared. 318If it contains the 319.Dv FWRITE 320bit, then all characters in the output queue are cleared. 321If the value of the integer is zero, then it behaves as if both the 322.Dv FREAD 323and 324.Dv FWRITE --- 6 unchanged lines hidden (view full) --- 331The window size structure contains the number of rows and columns (and pixels 332if appropriate) of the devices attached to the terminal. 333It is set by user software 334and is the means by which most full\&-screen oriented programs determine the 335screen size. 336The 337.Va winsize 338structure is defined in | 317then all characters in the input queue are cleared. 318If it contains the 319.Dv FWRITE 320bit, then all characters in the output queue are cleared. 321If the value of the integer is zero, then it behaves as if both the 322.Dv FREAD 323and 324.Dv FWRITE --- 6 unchanged lines hidden (view full) --- 331The window size structure contains the number of rows and columns (and pixels 332if appropriate) of the devices attached to the terminal. 333It is set by user software 334and is the means by which most full\&-screen oriented programs determine the 335screen size. 336The 337.Va winsize 338structure is defined in |
339.Aq Pa sys/ioctl.h . | 339.In sys/ioctl.h . |
340.It Dv TIOCSWINSZ Fa struct winsize *ws 341Set the window size associated with the terminal to be the value in 342the 343.Va winsize 344structure pointed to by 345.Fa ws 346(see above). 347.It Dv TIOCCONS Fa int *on --- 78 unchanged lines hidden --- | 340.It Dv TIOCSWINSZ Fa struct winsize *ws 341Set the window size associated with the terminal to be the value in 342the 343.Va winsize 344structure pointed to by 345.Fa ws 346(see above). 347.It Dv TIOCCONS Fa int *on --- 78 unchanged lines hidden --- |