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:
Reference in New Issue
Block a user