Skip to content

After viewing a file with less command, the screen gets garbled

Thanks for filing an issue! Please answer the questions below so I can help you.

Detailed steps to reproduce the problem:

  1. Try to view 4-5 files using less command. Then run some usual commands like date, ls -lrth etc. Then again view 4-5 files with less command. If you scroll up, you will find the text on the iterm tab is garbled. Basically, the text present in less command gets printed on the screen which should not happen after using less command. The text of the files which were viewed using less command overwrites output of other commands. This makes viewing output of other commands very difficult.
  2. Second bug is sometimes i have seen the text of output printed twice on an Iterm tab. When i scroll up, this creates confusion and i start doubting myself if i ran the same command twice but that is not the case.

What happened: Viewing output of files using less command garbles the screen with lot of text. Second bug - one output is seen executed twice, but that is not the case.

What should have happened: Less command output should not be printed on Iterm tab. Command once run should be seen only once while scrolling up.