Chrysostomus / manjaro-zsh-config

Zsh configuration package for manjaro
MIT License
124 stars 52 forks source link

Avoid broken output of less #19

Closed jumostedu closed 3 years ago

jumostedu commented 3 years ago

After a fresh manjaro install, I was getting output of less with missing lines and strange behavior. It took me some time to figure out that this was causing it. It was not a really fancy use of less either.

As per the less manpage:

   -r or --raw-control-chars
          ... Warning: when the -r option is used, less cannot keep track of the actual appearance of the  screen  (since  this
          depends on how the screen responds to each type of control character).  Thus, various display problems may result,
          such as long lines being split in the wrong place.

   -R or --RAW-CONTROL-CHARS
          Like -r, but only ANSI "color" escape sequences are output in "raw" form.  Unlike  -r,  the  screen appearance  is
          maintained correctly in most cases. ...

I'm using -R for years and it works great, so IMHO -R is the more sensible option, especially for a config coming as default with an OS.