From owner-freebsd-current Sun Nov 1 20:56:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA04097 for freebsd-current-outgoing; Sun, 1 Nov 1998 20:56:44 -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 UAA04085 for ; Sun, 1 Nov 1998 20:56:41 -0800 (PST) (envelope-from randy@psg.com) Received: from localhost (2831 bytes) by rip.psg.com via sendmail with P:stdio/R:inet_resolve/T:smtp (sender: ) (ident using unix) id for ; Sun, 1 Nov 1998 20:56:30 -0800 (PST) (Smail-3.2.0.101 1997-Dec-17 #1 built 1998-Oct-13) Message-Id: Date: Sun, 1 Nov 1998 20:56:30 -0800 (PST) From: Randy Bush MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: freebsd-current@FreeBSD.ORG Subject: screen not restored on exit of (less|more|vi|.*) 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. looking at stty parms, the only differences are as follows: bsdi oflags: opost onlcr oxtabs ^^^^^^ cflags: cread cs8 -parenb -parodd hupcl -clocal -noclocal -cstopb ^^^^^^^^^ -cts_oflow -rts_iflow -mdmbuf ^^^^^^^^^^^^^^^^^^^^^ freebsd oflags: opost onlcr -oxtabs ^^^^^^^ cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow -dtrflow -mdmbuf ^^^^^^^^^^^^^^^^^^^^^^^^^^ nothing tasty there. how about termcap? bsdi :al@:dl@:im=:ei=:mi@:ic=\E[@:\ :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:UP=\E[%dA:\ :al=\E[L:am:\ :bs:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:co#80:\ :cs=\E[%i%d;%dr:ct=\E[3k:\ :dc=\E[P:dl=\E[M:\ :im=\E[4h:ei=\E[4l:mi:\ :ho=\E[H:\ :is=\E[m\E[?7h\E[?1;3;4l\E[4l:\ :rs=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E<:\ :kb=^H:kd=\EOB:ke=\E[?1l\E>:\ :k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:\ :k6=\E[16~:k7=\E[17~:k8=\E[18~:\ :kl=\EOD:km:kn#8:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:\ :li#65:md=\E[1m:me=\E[m:mr=\E[7m:ms:nd=\E[C:pt:\ :sc=\E7:rc=\E8:sf=\n:so=\E[7m:se=\E[m:sr=\EM:\ :te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:\ :up=\E[A:us=\E[4m:ue=\E[m:xn: freebsd :li#65:\ :kh=\EOH:@7=\EOF:kb=^H:kD=^?:\ :k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\ :hs:km:ts=\E[?E\E[?%i%dT:fs=\E[?F:es:ds=\E[?E:\ :is=\E>\E[?1;3;4;5l\E[?7;8h\E[1;65r\E[65;1H:\ :rs=\E>\E[?1;3;4;5l\E[?7;8h:\ :tc=vt220: but o replacing freebsd's with bsdi's (noting the te/ti) o rebuilding termcap.db o and starting a new xterm gives me the same result. any clues? randy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message