Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Jun 2023 13:47:48 -0400
From:      Aryeh Friedman <aryeh.friedman@gmail.com>
To:        Holger Sebert <holger.sebert@mailbox.org>
Cc:        questions@freebsd.org
Subject:   Re: totally OT: How to prevent Linux guest from clearing screen entering/leaving vim
Message-ID:  <CAGBxaX=Pk5ztRc0ciQzRy=tZbwV9GMUNVEygZ0iGDNUjPBFdCw@mail.gmail.com>
In-Reply-To: <dac6397d-367a-2f96-aef1-53ddc91b51ce@mailbox.org>
References:  <CAGBxaX=MreN=jQMLhQj7-2vM89nkkb3wEAdfDBz2v_6wh7Fmjw@mail.gmail.com> <20230603120016.803642b5e7d4c56b4725e7cc@sohara.org> <CAGBxaXmdR2V0UMoFc-A6LZGtfDG0Y_%2Be4mDBT5%2B2aERqHMSYwg@mail.gmail.com> <dac6397d-367a-2f96-aef1-53ddc91b51ce@mailbox.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jun 3, 2023 at 10:36=E2=80=AFAM Holger Sebert <holger.sebert@mailbo=
x.org> wrote:
>
>
>
> On 6/3/23 14:34, Aryeh Friedman wrote:
> > On Sat, Jun 3, 2023 at 7:00=E2=80=AFAM Steve O'Hara-Smith <steve@sohara=
.org> wrote:
> >>
> >> On Sat, 3 Jun 2023 06:40:21 -0400
> >> Aryeh Friedman <aryeh.friedman@gmail.com> wrote:
> >>
> >>> 1) The terminal clears (thus ruining any possibility of scrolling bac=
k
> >>> to stuff I want to reference) when I enter and leave vi.... i.e.
> >>> command line stuff is not visible inside vim and vim is not visible
> >>> (with no amount of scrolling back) if I am in command line mode.. .
> >>> this makes fixing compiler errors ***VERY*** annoying since I have an
> >>> increased cognitive load from having to remember the line number and
> >>> the error... It also make cutting and pasting next to impossible
> >>
> >>          This one I also hate. and kn ow how to fix :) add this to
> >> your .vimrc
> >>
> >> :set t_te=3D
> >
> > Still doesn't completely solve it because once I leave vim (or am in
> > vim) I still can not scroll back before the start of the vim session
> > (i.e. still can't see the compiler [javac] errors).... it does help in
> > being able to cut and paste stuff from vim to other places but not the
> > other way around
> >
>
> I think the (mis-)feature you are experiencing is called
> =E2=80=9Calternate screen=E2=80=9D. May this here helps?

Never would of found that searching on my own (chatGPT also had no idea)

>
> https://www.shallowsky.com/linux/noaltscreen.html

Now my question: what *MORON* thought this "feature" was a good idea?!?!?

--=20
Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGBxaX=Pk5ztRc0ciQzRy=tZbwV9GMUNVEygZ0iGDNUjPBFdCw>