watch: Add no linewrap option
For long lines from a process, watch would wrap them around to the next. While this default option has it uses, sometimes you want to just cut those long lines down. watch has a -w flag which will truncate the lines to the number of columns. A few simple lines to do this new trick. I think I caught all the ANSI state correctly but there might be a chance it bleeds to the next row. References: procps-ng/procps#182
This commit is contained in:
1 parent
6a2cc67bb6
commit
e36fe38835
3 files changed
+34
-2
No files matched your search
Reference in new issue
Block a user