0

Some programs, such as less, have the annoying idea that I should not be allowed to keep loking at the content of a file while I'm typing the next command. They save the contents of the terminal when they start and then blank out all their own output when they exit.

In an xterm, this can be suppressed by setting a *titeInhibit X resource, or at runtime using ctrl-Mouse3. However, cygwin's rxvt-native does not react to ctrl-Mouse3, nor (naturally) does it read X resources.

Is there a way to get rxvt-native to refuse to do the ti-te/smcup-rmcup/alternate screen madness?

1 Answer 1

1

If you don't want LESS to clear the screen when it finishes, just use less -X . You can make this happen by default by setting the LESS environment variable. export LESS=-X .

3
  • Yes, but I'd like a solution that I won't have to repeat each time I ssh into a different server (with a shared administrative account where I'm not supposed to start customizing the profile). Aug 14, 2012 at 18:32
  • According to man ssh you can put LESS=-X in the file ~/.ssh/environment and ssh will set that environment variable for you (if you have export permissions).
    – dadinck
    Aug 14, 2012 at 20:36
  • That's an interesting idea. Aug 14, 2012 at 20:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .