This question already has an answer here:
I have a question just opposite to Is there any way to exit "less" without clearing the screen?: my
less exits without clearing the screen but I have never used
The options I use is as follows:
$ echo $LESS -N -g -i -M -R -w -z-4 $ echo $LESSOPEN $ $ echo $TERM ansi
I remember when my
less have started to change its behavior is when I was trying to typing something to another application but my cursor was in the terminal with
less opening. When I realized I am typing into a wrong place and tried to quit the my
less, the file contents start to remaining to my terminal. I am using mac OS terminal (not iTerm2).
Thanks in advance.
Thanks for the suggesting of existing posts. As @roaima suggested, my issue is to get the
less's standard behavior without
-+X does not works, neither
-X is in
[Edit 2] I am using OSX Terminal.app, not iTerm2