From owner-freebsd-current Mon Nov 2 08:03:45 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA00698 for freebsd-current-outgoing; Mon, 2 Nov 1998 08:03:45 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from rip.psg.com (rip.psg.com [147.28.0.39]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA00689 for ; Mon, 2 Nov 1998 08:03:42 -0800 (PST) (envelope-from randy@psg.com) Received: from localhost (2048 bytes) by rip.psg.com via sendmail with P:stdio/R:inet_resolve/T:smtp (sender: ) (ident using unix) id for ; Mon, 2 Nov 1998 08:03:33 -0800 (PST) (Smail-3.2.0.101 1997-Dec-17 #1 built 1998-Oct-13) Message-Id: Date: Mon, 2 Nov 1998 08:03:33 -0800 (PST) From: Randy Bush MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: "José Mª Alcaide" Cc: freebsd-current@FreeBSD.ORG Subject: Re: screen not restored on exit of (less|more|vi|.*) References: <363DC146.67C421D8@we.lc.ehu.es> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >> xserver on CURRENT, two xterms, each running current bash etc. >> o one to a bsdi 3.1 system (same on sunos, ...) >> o one to the same freebsd host >> >> 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. > > You should substitute the contents of the file > /usr/X11R6/lib/X11/etc/xterm.termcap for the xterm entries in > /usr/share/misc/termcap. Once done, run "cap_mkdb" to rebuild > the termcap.db database. This works for me. NOTE: The xterm.termcap > file distributed with XFree86 3.3.2 has a little bug: search for > the string "39m;49m" and change it to "39;49m". YESSSSSSSSSSSSSSSSS!!!!! > However, there is a nasty secondary effect with "more": when you reach > the end of a file, "more" terminates, and the contents of the > last screen is lost. This effect can be avoided using the "-e" > option or, still better, defining the environment variable "MORE=-e". yes yes. i actually use less with LESS=-aCeiM -P %i/%m %f %lt/%L %pb\% THANK YOU! randy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message