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
30 KiB
30 KiB