git: ministat(1): Fix terminal width handling
Aaron LI
aly at crater.dragonflybsd.org
Tue Mar 19 22:22:53 PDT 2019
commit 48641519d3acf3eb3936da7989e7212a1d2b487e
Author: Aaron LI <aly at aaronly.me>
Date: Wed Mar 20 13:12:52 2019 +0800
ministat(1): Fix terminal width handling
ministat(1) will prefer to get the terminal width from the "COLUMNS"
environment variable, in which case the plot will overflow by 2 columns
because the plot frame is not considered. Fix this issue.
However, in Emacs's "shell" mode (not the "term" mode), the plot will
still overflow because Emacs puts a '\' at the right-most column. One
can manually modify the "COLUMNS" environment variable or use the "-w"
option to workaround this issue.
Reported-by: swildner
Summary of changes:
usr.bin/ministat/ministat.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/48641519d3acf3eb3936da7989e7212a1d2b487e
--
DragonFly BSD source repository
More information about the Commits
mailing list