mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
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.
This commit is contained in:
1 parent
cb7d8b90a2
commit
3d7b822e4a
2 files changed
+18
No files matched your search
@@ -14187,6 +14187,13 @@ each character over high latency links. See also
|
||||
@uref{ftp://ftp.rfc-editor.org/in-notes/rfc1116.txt, Internet RFC 1116}.
|
||||
Non-POSIX@.
|
||||
May be negated.
|
||||
|
||||
@item flusho
|
||||
@opindex flusho
|
||||
Discard output.
|
||||
Note this setting is currently ignored on GNU/Linux systems.
|
||||
Non-POSIX@.
|
||||
May be negated.
|
||||
@end table
|
||||
|
||||
|
||||
|
||||
+11
@@ -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
|
||||
@@ -834,6 +837,11 @@ Local settings:\n\
|
||||
fputs (_("\
|
||||
* [-]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\
|
||||
@@ -1054,6 +1062,9 @@ Combination settings:\n\
|
||||
#ifdef EXTPROC
|
||||
" -extproc"
|
||||
#endif
|
||||
#ifdef FLUSHO
|
||||
" -flusho"
|
||||
#endif
|
||||
);
|
||||
fputs (_("\
|
||||
\n\
|
||||
|
||||
Reference in new issue
Block a user