On Wednesday 16 May 2001 13:34, you wrote:
> A colleague is complaining that when he exits vi(m), it clears the screen
> so he can't see what he was viewing. What can he set in his .exrc to
> prevent that?
It's not so much that vi clears the screen as that it, in common with
almost all curses-based progams, uses the "alternate screen"
capability of most terminal emulators (xterm, in particular) - this is
a separate screen buffer which a program can switch back and forth to.
If you're using xterm, there's an option on the ctrl-button2 menu
called "Show Alternate Screen" which should display the alternate
screen as used by vi. If you don't want this functionality at all,
you could put:
in your ~/.Xresources (or possibly ~/.Xdefaults, depending on your
window manager scripts) file to disable the "alternate screen"
behaviour in xterm. (and xrdb -merge < ~/.Xresources to load
If it's not xterm, what is it?
Colm Buckley @ NewWorld Commerce
Business: +353 1 4334334 / colm at nwcgroup.com / http://www.nwcgroup.com/
Personal: +353 87 2469146 / colm at tuatha.org / http://www.tuatha.org/~colm/
Why is there only one Monopolies Commission?
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!