From nobody Sat Jun 3 14:33:50 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QYMqg0dczz4Yv9f for ; Sat, 3 Jun 2023 14:35:59 +0000 (UTC) (envelope-from holger.sebert@mailbox.org) Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [80.241.56.171]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4QYMqd5VH7z4DD6 for ; Sat, 3 Jun 2023 14:35:57 +0000 (UTC) (envelope-from holger.sebert@mailbox.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=YUB+kAP5; spf=pass (mx1.freebsd.org: domain of holger.sebert@mailbox.org designates 80.241.56.171 as permitted sender) smtp.mailfrom=holger.sebert@mailbox.org; dmarc=pass (policy=reject) header.from=mailbox.org Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4QYMqY3HMfz9slX for ; Sat, 3 Jun 2023 16:35:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1685802953; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4BpVpMlnoSrofmIdV+oUBGzGma7z/UGc/R9rrVZshj8=; b=YUB+kAP5hGCvfEopC/zm52JAw/fEu1mIwVuL2DF4ttcPg4N0kAt+LSbzry0v2rX0S1AnVU KWo8I9dOqaKxya+9C5wuo2omjmu6pRz/9DK1q3sxYwkCGv4AEwxot7o0DxhzEHc3AYugC3 5sk6OwLPpYgxNrasRbBn8oSGu7Bouz0JoMkz3b457x3bBmwQf95NG72NySiRQI7SHndM2E /XcnW1gwpWf5G1p/etlEEvya2Ro58i3YVAmrAgoSqHoFAl/WLzhr2wQLdIkulhjR2FBgXO uF6lPTIku5CIr7flscN04NOf2Alrm/4Rs46t4cD4E9nst/P/7CoMVnUK/D9OHg== Message-ID: Date: Sat, 3 Jun 2023 16:33:50 +0200 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Subject: Re: totally OT: How to prevent Linux guest from clearing screen entering/leaving vim To: questions@freebsd.org References: <20230603120016.803642b5e7d4c56b4725e7cc@sohara.org> Content-Language: en-US From: Holger Sebert In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-MBO-RS-META: jjfduyw4weeswtu1o5gu173nskps7xsq X-MBO-RS-ID: 05cf3d0b983239be8b0 X-Spamd-Result: default: False [-4.15 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.981]; NEURAL_HAM_LONG(-0.97)[-0.973]; DMARC_POLICY_ALLOW(-0.50)[mailbox.org,reject]; R_SPF_ALLOW(-0.20)[+ip4:80.241.56.0/21]; RCVD_IN_DNSWL_LOW(-0.20)[80.241.56.171:from,2001:67c:2050:b231:465::102:received]; R_DKIM_ALLOW(-0.20)[mailbox.org:s=mail20150812]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:199118, ipnet:80.241.56.0/21, country:DE]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[mailbox.org:+]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[mailbox.org:dkim]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4QYMqd5VH7z4DD6 X-Spamd-Bar: ---- X-ThisMailContainsUnwantedMimeParts: N On 6/3/23 14:34, Aryeh Friedman wrote: > On Sat, Jun 3, 2023 at 7:00 AM Steve O'Hara-Smith wrote: >> >> On Sat, 3 Jun 2023 06:40:21 -0400 >> Aryeh Friedman wrote: >> >>> 1) The terminal clears (thus ruining any possibility of scrolling back >>> 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= > > 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 “alternate screen”. May this here helps? https://www.shallowsky.com/linux/noaltscreen.html