|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: [PLUG] how to prevent vi clear the screen
|
You might find the following a useful addition to your .Xdefaults:
! This resource specifies whether or not to ignore the 'alternate screen'
! of applications such as vi. When it is on, these applications will restore
! the contents of the screen when they are exited to what they were before
! they were started. When it is off, the contents of vi will remain on the
! screen after the program is quit.
XTerm*VT100.titeInhibit: true
Ymmv, depending on your terminal emulator (or terminal, if you're into
ebay).
You can also set LESS in your .bash_profile (cf the less man page):
export LESS="EMX" # my value
This causes less to assume the following flags on all invocations:
-E auto-exit at end of file
-M prompt verbosely
-X inhibit terminal initialization and exit (inhibit ti te for
those who haven't followed the naming thing going on)
>From "man less":
-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 clearing the
screen.
-Jeff
On Mon, Aug 27, 2001 at 01:32:17PM -0400, epike@isinet.com wrote:
> > Not sure I quite understand what you are trying to accomplish, but...
> > You could just execute the command from within vi ie, :!<command>.
>
> yes that would work too..but its a developed habit....years
> of using VI..
>
> BTW thanks to everybody..I also found the following TERM
> setting that would make this work in VI as well as
> LESS (in xterminal windows):
>
> xterm1
>
> just found the following /etc/termcap entry:
>
> xterm1|xterm terminal emulator ignoring the alternate screen buffer:\
> :te@:ti@:\
> :tc=xterm:
>
> thanks...
> JondZ
>
>
> ______________________________________________________________________
> Philadelphia Linux Users Group - http://www.phillylinux.org
> Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
> General Discussion - http://lists.phillylinux.org/mail/listinfo/plug
--
Jeff
Jeff Abrahamson <http://www.purple.com/jeff/>
______________________________________________________________________
Philadelphia Linux Users Group - http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion - http://lists.phillylinux.org/mail/listinfo/plug
|
|