diff options
author | ache <ache@FreeBSD.org> | 2000-04-27 21:31:23 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2000-04-27 21:31:23 +0000 |
commit | ecbfef142fe07cfdc2340f8798a40ccb16381424 (patch) | |
tree | e87a6bf52c0c5afbf5c65e7dbc73291d1ab484b0 /bin/stty/key.c | |
parent | 676117ef4cc0044d29cace8f438915a5fdc4de45 (diff) | |
download | FreeBSD-src-ecbfef142fe07cfdc2340f8798a40ccb16381424.zip FreeBSD-src-ecbfef142fe07cfdc2340f8798a40ccb16381424.tar.gz |
Add ability to manipulate with drain wait time
Diffstat (limited to 'bin/stty/key.c')
-rw-r--r-- | bin/stty/key.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/bin/stty/key.c b/bin/stty/key.c index ba33a81..9aed9a1 100644 --- a/bin/stty/key.c +++ b/bin/stty/key.c @@ -56,6 +56,7 @@ void f_all __P((struct info *)); void f_cbreak __P((struct info *)); void f_columns __P((struct info *)); void f_dec __P((struct info *)); +void f_drainwait __P((struct info *)); void f_everything __P((struct info *)); void f_extproc __P((struct info *)); void f_ispeed __P((struct info *)); @@ -82,6 +83,7 @@ static struct key { { "columns", f_columns, F_NEEDARG }, { "cooked", f_sane, 0 }, { "dec", f_dec, 0 }, + { "drainwait", f_drainwait, F_NEEDARG }, { "everything", f_everything, 0 }, { "extproc", f_extproc, F_OFFOK }, { "ispeed", f_ispeed, F_NEEDARG }, @@ -140,7 +142,7 @@ void f_all(ip) struct info *ip; { - print(&ip->t, &ip->win, ip->ldisc, BSD); + print(&ip->t, &ip->win, ip->ldisc, ip->timeout, BSD); } void @@ -183,11 +185,20 @@ f_dec(ip) } void +f_drainwait(ip) + struct info *ip; +{ + + ip->timeout = atoi(ip->arg); + ip->tset = 1; +} + +void f_everything(ip) struct info *ip; { - print(&ip->t, &ip->win, ip->ldisc, BSD); + print(&ip->t, &ip->win, ip->ldisc, ip->timeout, BSD); } void |