diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-01-05 18:02:27 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-01-05 18:02:27 +0000 |
commit | 640e184a9dfb586f86ac4d3753f94ffb4eed227d (patch) | |
tree | 930b352c9b26a40d8a86f4f40fadb367f1895968 /bin/stty | |
parent | 9f5f5127b5b388e7a4dba4c13ec627851068ea16 (diff) |
Add support for ostart and ostop
Diffstat (limited to 'bin/stty')
-rw-r--r-- | bin/stty/key.c | 20 | ||||
-rw-r--r-- | bin/stty/stty.1 | 19 |
2 files changed, 38 insertions, 1 deletions
diff --git a/bin/stty/key.c b/bin/stty/key.c index 956c5528b0e..2758fd399ba 100644 --- a/bin/stty/key.c +++ b/bin/stty/key.c @@ -67,6 +67,8 @@ void f_rows __P((struct info *)); void f_sane __P((struct info *)); void f_size __P((struct info *)); void f_speed __P((struct info *)); +void f_ostart __P((struct info *)); +void f_ostop __P((struct info *)); void f_tty __P((struct info *)); __END_DECLS @@ -90,6 +92,8 @@ static struct key { { "nl", f_nl, F_OFFOK }, { "old", f_tty, 0 }, { "ospeed", f_ospeed, F_NEEDARG }, + { "ostart", f_ostart, 0 }, + { "ostop", f_ostop, 0 }, { "raw", f_raw, F_OFFOK }, { "rows", f_rows, F_NEEDARG }, { "sane", f_sane, 0 }, @@ -304,3 +308,19 @@ f_tty(ip) if (ioctl(0, TIOCSETD, &tmp) < 0) err(1, "TIOCSETD"); } + +void +f_ostart(ip) + struct info *ip; +{ + if (ioctl (0, TIOCSTART) < 0) + err(1, "TIOCSTART"); +} + +void +f_ostop(ip) + struct info *ip; +{ + if (ioctl (0, TIOCSTOP) < 0) + err(1, "TIOCSTOP"); +} diff --git a/bin/stty/stty.1 b/bin/stty/stty.1 index 3d863a1026a..9cd1f3906c8 100644 --- a/bin/stty/stty.1 +++ b/bin/stty/stty.1 @@ -568,6 +568,22 @@ Same as the control character Same as the control character .Cm reprint . .El +.Ss Control operations: +.Pp +These operations are not modes, but rather commands to be performed by +the tty layer. +.Bl -tag -width Fl +.It Cm ostart +Performs a "start output" operation, as normally done by an +incoming START character when +.Cm ixon +is set. +.It Cm ostop +Performs a "stop output" operation, as normally done by an +incoming STOP character when +.Cm ixon +is set. +.El .Pp The .Nm stty @@ -584,4 +600,5 @@ compatible. The flags and .Fl f are -extensions to the standard. +extensions to the standard, as are the operands mentioned in the control +operations section. |