summaryrefslogtreecommitdiffstats
path: root/term-utils/setterm.1.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'term-utils/setterm.1.adoc')
-rw-r--r--term-utils/setterm.1.adoc4
1 files changed, 4 insertions, 0 deletions
diff --git a/term-utils/setterm.1.adoc b/term-utils/setterm.1.adoc
index 880fe10..365c4bb 100644
--- a/term-utils/setterm.1.adoc
+++ b/term-utils/setterm.1.adoc
@@ -156,6 +156,10 @@ Turns underline mode on or off.
include::man-common/help-version.adoc[]
+== WARNING
+
+Use of *setterm* in combination with stdout redirection can have unexpected results, as some options operate on stdin. To prevent problems, always redirect both stdin and stdout to the same device.
+
== COMPATIBILITY
Since version 2.25 *setterm* has support for long options with two hyphens, for example *--help*, beside the historical long options with a single hyphen, for example *-help*. In scripts it is better to use the backward-compatible single hyphen rather than the double hyphen. Currently there are no plans nor good reasons to discontinue single-hyphen compatibility.