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/print.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/print.c')
-rw-r--r-- | bin/stty/print.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/stty/print.c b/bin/stty/print.c index a0149c2..6df106d 100644 --- a/bin/stty/print.c +++ b/bin/stty/print.c @@ -55,10 +55,11 @@ static void bput __P((char *)); static char *ccval __P((struct cchar *, int)); void -print(tp, wp, ldisc, fmt) +print(tp, wp, ldisc, timeout, fmt) struct termios *tp; struct winsize *wp; int ldisc; + int timeout; enum FMT fmt; { struct cchar *p; @@ -96,7 +97,8 @@ print(tp, wp, ldisc, fmt) else cnt += printf("speed %d baud;", ispeed); if (fmt >= BSD) - cnt += printf(" %d rows; %d columns;", wp->ws_row, wp->ws_col); + cnt += printf(" %d rows; %d columns; drainwait %d seconds;", + wp->ws_row, wp->ws_col, timeout); if (cnt) (void)printf("\n"); |