Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A custom terminfo to restore 10.2 Terminal behavior' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A custom terminfo to restore 10.2 Terminal behavior
Authored by: Thom on Dec 29, '04 06:14:13PM
I wasn't sure what exactly had changed this, because I'd also switched to zsh as my default shell. I also found this quite annoying.

My solution was to set the 'LESS' env var to ='-X'.

From the man page:

       -X or --no-init
              Disables sending the termcap initialization and deinitialization
              strings to the terminal.  This is  sometimes  desirable  if  the
              deinitialization  string does something unnecessary, like clear-
              ing the screen.

Yet another way to skin this cat.

HTH,

Thom

[ Reply to This | # ]

Ack, except last-line overwrite.
Authored by: Thom on Dec 29, '04 06:18:15PM

I should mention that my solution does NOT solve the last-line overwrite issue. It's kind of sad; even when I do little one-liners in perl or php, I have to remember to append a newline to them. (Or, pipe them to less!)

When asked, snooty people told me that all processes should end with a newline at the end of their output anyway. (So harumph, evidently!)

Sigh.



[ Reply to This | # ]