[PATCH] minstat: default width is terminal width, not 74
Kristof Provost
kristof at sigsegv.be
Thu Dec 18 21:20:27 UTC 2014
The man page states that:
'-w width Width of ASCII-art plot in characters, default is 74.'
This is not entirely correct. The mini-help is more accurate:
'-w : width of graph/test output (default 74 or terminal width)'
In other words: the man page fails to explain that ministat will default
to the terminal width, not 74. It will only fall back to 74 if 'COLUMNS'
is not set and ioctl(TIOCGWINSZ) fails.
---
usr.bin/ministat/ministat.1 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usr.bin/ministat/ministat.1 b/usr.bin/ministat/ministat.1
index ea31c23..4550a09 100644
--- a/usr.bin/ministat/ministat.1
+++ b/usr.bin/ministat/ministat.1
@@ -68,7 +68,7 @@ See
.Xr strtok 3
for details.
.It Fl w Ar width
-Width of ASCII-art plot in characters, default is 74.
+Width of ASCII-art plot in characters, default is terminal width or 74.
.El
.Pp
A sample output could look like this:
--
2.1.3
More information about the freebsd-current
mailing list