summaryrefslogtreecommitdiffstats
path: root/term-utils/setterm.1
diff options
context:
space:
mode:
authorSami Kerola2016-12-29 11:28:54 +0100
committerSami Kerola2016-12-29 11:56:15 +0100
commit5d795999511adc455d223be8281948796bd7d087 (patch)
treecf2d48eb177e717343f9926d9c6b9858f578d98c /term-utils/setterm.1
parentMerge branch 'getrandom' of git://github.com/kerolasa/lelux-utiliteetit (diff)
downloadkernel-qcow2-util-linux-5d795999511adc455d223be8281948796bd7d087.tar.gz
kernel-qcow2-util-linux-5d795999511adc455d223be8281948796bd7d087.tar.xz
kernel-qcow2-util-linux-5d795999511adc455d223be8281948796bd7d087.zip
setterm: add --resize option
Reset terminal size by assessing maximum row and column. This is useful when actual geometry and kernel terminal driver are not in sync. Addresses: http://bugs.debian.org/835636 Based-on-work-by: Adam Borowski <kilobyte@angband.pl> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'term-utils/setterm.1')
-rw-r--r--term-utils/setterm.17
1 files changed, 7 insertions, 0 deletions
diff --git a/term-utils/setterm.1 b/term-utils/setterm.1
index 2a06c1a08..22a8ff03a 100644
--- a/term-utils/setterm.1
+++ b/term-utils/setterm.1
@@ -228,6 +228,13 @@ Turns keyboard repeat on or off.
Displays the terminal reset string, which typically resets the terminal to
its power-on state.
.TP
+\fB\-\-resize\fP
+Reset terminal size by assessing maximum row and column. This is useful
+when actual geometry and kernel terminal driver are not in sync. Most
+notable use case is with serial consoles, that do not use
+.BR ioctl (3)
+but just byte streams and breaks.
+.TP
\fB\-\-reverse\fP [\fBon\fP|\fBoff\fP]
Turns reverse video mode on or off. Except on a virtual console,
.B \-\-reverse off