From owner-freebsd-current Mon Nov 2 07:57:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA29532 for freebsd-current-outgoing; Mon, 2 Nov 1998 07:57:02 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from phoenix.volant.org (phoenix.volant.org [205.179.79.193]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA29526 for ; Mon, 2 Nov 1998 07:57:01 -0800 (PST) (envelope-from patl@phoenix.volant.org) From: patl@phoenix.volant.org Received: from asimov.phoenix.volant.org ([205.179.79.65]) by phoenix.volant.org with smtp (Exim 1.92 #8) id 0zaMLg-0000b2-00; Mon, 2 Nov 1998 07:56:56 -0800 Received: from localhost by asimov.phoenix.volant.org (SMI-8.6/SMI-SVR4) id HAA17034; Mon, 2 Nov 1998 07:56:50 -0800 Date: Mon, 2 Nov 1998 07:56:50 -0800 (PST) Reply-To: patl@phoenix.volant.org Subject: Re: screen not restored on exit of (less|more|vi|.*) To: Randy Bush cc: freebsd-current@FreeBSD.ORG In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > say 'less foo' (or vi foo, or ...) > > o quit less on bsdi and the screen is restored. i.e., you see > > foo% more iddd.patch > foo% > > i.e. all the remnants of less's output are gone, and the screen is > restored exactly as it was before the command ran, with a new prompt > right below the one that issued the command, even if it is mid-screen. > > o after running less on freebsd the screen is not restored. i.e. the > remnants of less fill the screen with the new prompt on the bottom > line of the xterm, and the previous prompt and screen obliterated. > > i prefer the former behavior, but do not understand how to cause the > freebsd system to adopt it. And I prefer the later. I find it extremely useful to be able to keep the last screenful viewed in the scrollable history area while entering new commands. Or to suspend emacs for long enough to issue a few commands, and still see the text I was editing. PLEASE don't force your preference on the rest of us. If you don't want to lose the previous commands, make an alias or function for more, less, etc. that emits a suitable number of linefeeds before invoking the real thing. -Pat To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message