[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] stty: document the 'status' character where supported
From: |
Pádraig Brady |
Subject: |
[PATCH] stty: document the 'status' character where supported |
Date: |
Fri, 23 Jan 2015 01:32:25 +0000 |
* 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
its 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 078bca3..1d6f9d8 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 f3fb714..ecff2d3 100644
--- a/src/stty.c
+++ b/src/stty.c
@@ -574,6 +574,11 @@ Special characters:\n"), stdout);
* 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\
"), stdout);
--
2.1.0