diff options
author | Yuri Pankov <yuripv@FreeBSD.org> | 2020-07-14 22:43:40 +0000 |
---|---|---|
committer | Yuri Pankov <yuripv@FreeBSD.org> | 2020-07-14 22:43:40 +0000 |
commit | 13858b88240224ac809dd656c74d39683224dab3 (patch) | |
tree | 16b922177412ac69d5bfbbf99b4c5680f6fb13fb /usr.bin/top | |
parent | ef013ceecd0d7269768a57727666410d314ae8e9 (diff) | |
download | src-13858b88240224ac809dd656c74d39683224dab3.tar.gz src-13858b88240224ac809dd656c74d39683224dab3.zip |
top: VIS_SAFE turned out to be unsafe
Unset VIS_SAFE flag as it turned out to be actually unsafe
for continuos top display as it's passing through sequences
resulting cursor movement (backspace, tab, carriage-return),
and explicitly set VIS_TAB for the same reason.
Reported by: Mark Millard <marklmi@yahoo.com>, swills
Tested by: Mark Millard <marklmi@yahoo.com>, swills
Notes
Notes:
svn path=/head/; revision=363207
Diffstat (limited to 'usr.bin/top')
-rw-r--r-- | usr.bin/top/machine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index 476432e5db0c..c7b3e13c700b 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -1016,7 +1016,7 @@ format_next_process(struct handle * xhandle, char *(*get_userid)(int), int flags len = (argbuflen - (dst - argbuf) - 1) / 4; strvisx(dst, src, MIN(strlen(src), len), - VIS_NL | VIS_CSTYLE | VIS_OCTAL | VIS_SAFE); + VIS_NL | VIS_TAB | VIS_CSTYLE | VIS_OCTAL); while (*dst != '\0') dst++; if ((argbuflen - (dst - argbuf) - 1) / 4 > 0) |