From c6a722946d9868b49fa363dc6e562c39ac8e9de7 Mon Sep 17 00:00:00 2001 From: Pádraig Brady
Date: Fri, 23 Jan 2015 01:26:29 +0000 Subject: stty: document the 'status' character where supported * src/stty.c (usage): On systems that support this setting (BSD), display 'status' in the list of adjustable special characters. * doc/coreutils.texi (stty invocation): Mention the option, and that it's not currently supported on Linux. --- doc/coreutils.texi | 4 ++++ src/stty.c | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 078bca340..1d6f9d86b 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -14447,6 +14447,10 @@ Alternate character to toggle discarding of output. Non-POSIX. @opindex swtch Switch to a different shell layer. Non-POSIX. +@item status +@opindex status +Send an info signal. Not currently supported on Linux. Non-POSIX. + @item start @opindex start Restart the output after stopping it. diff --git a/src/stty.c b/src/stty.c index f3fb714b3..ecff2d359 100644 --- a/src/stty.c +++ b/src/stty.c @@ -573,6 +573,11 @@ Special characters:\n"), stdout); fputs (_("\ * lnext CHAR CHAR will enter the next character quoted\n\ "), stdout); +#endif +#ifdef VSTATUS + fputs (_("\ + * status CHAR CHAR will send an info signal\n\ +"), stdout); #endif fputs (_("\ quit CHAR CHAR will send a quit signal\n\ -- cgit v1.2.3-70-g09d2