summaryrefslogtreecommitdiffstats
path: root/bin/stty
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2000-11-10 17:46:15 +0000
committerru <ru@FreeBSD.org>2000-11-10 17:46:15 +0000
commita6f5d950d860b642619fd71c1efc1875f906cc17 (patch)
treed290d38e2fe5b5c638aa4cd22f5612eb6b8cd6de /bin/stty
parent48c9ea08a6fa4c9c3d612d66b001208c85107546 (diff)
downloadFreeBSD-src-a6f5d950d860b642619fd71c1efc1875f906cc17.zip
FreeBSD-src-a6f5d950d860b642619fd71c1efc1875f906cc17.tar.gz
Avoid use of direct troff requests in mdoc(7) manual pages.
Diffstat (limited to 'bin/stty')
-rw-r--r--bin/stty/stty.16
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/stty/stty.1 b/bin/stty/stty.1
index 26732d2..28f3e1d 100644
--- a/bin/stty/stty.1
+++ b/bin/stty/stty.1
@@ -480,14 +480,12 @@ This means that unsetting
may not put back all the setting that were previously in effect.
To set the terminal into a raw state and then accurately restore it, the following
shell code is recommended:
-.nf
-
+.Bd -literal
save_state=$(stty -g)
stty raw
\&...
stty "$save_state"
-
-.fi
+.Ed
.It Cm size
The size of the terminal is printed as two numbers on a single line,
first rows, then columns.
OpenPOWER on IntegriCloud