diff options
author | Pádraig Brady <P@draigBrady.com> | 2016-01-06 15:50:11 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2016-01-06 16:04:19 +0000 |
commit | 3d7b822e4a660e6804963d8e5ac0cdca2aeb3497 (patch) | |
tree | b977d71b2148b2f5a6f9329f1da8ecbcd2716f05 /src | |
parent | cb7d8b90a213c0186a8c8ba66da959e1f5930e78 (diff) | |
download | coreutils-3d7b822e4a660e6804963d8e5ac0cdca2aeb3497.tar.xz |
stty: support "flusho" local setting
This is used to discard terminal output on FreeBSD based systems.
* src/stty.c (mode_info): Add FLUSHO where supported.
(usage): Document for "local" and "combination" settings.
* doc/coreutils.texi (local stty settings): Document,
mentioning that this option is supported but ignored on GNU/Linux.
Diffstat (limited to 'src')
-rw-r--r-- | src/stty.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/stty.c b/src/stty.c index 6a365adf8..30053cc51 100644 --- a/src/stty.c +++ b/src/stty.c @@ -343,6 +343,9 @@ static struct mode_info const mode_info[] = {"echoke", local, SANE_SET | REV, ECHOKE, 0}, {"crtkill", local, REV | OMIT, ECHOKE, 0}, #endif +#ifdef FLUSHO + {"flusho", local, SANE_UNSET | REV, FLUSHO, 0}, +#endif #if defined TIOCEXT {"extproc", local, SANE_UNSET | REV | NO_SETATTR, EXTPROC, 0}, #elif defined EXTPROC @@ -835,6 +838,11 @@ Local settings:\n\ * [-]extproc enable \"LINEMODE\"; useful with high latency links\n\ "), stdout); #endif +#if defined FLUSHO + fputs (_("\ + * [-]flusho discard output\n\ +"), stdout); +#endif printf (_("\ [-]icanon enable special characters: %s\n\ [-]iexten enable non-POSIX special characters\n\ @@ -1054,6 +1062,9 @@ Combination settings:\n\ #ifdef EXTPROC " -extproc" #endif +#ifdef FLUSHO + " -flusho" +#endif ); fputs (_("\ \n\ |