Date: Sun, 1 Nov 1998 20:56:30 -0800 (PST) From: Randy Bush <randy@psg.com> To: freebsd-current@FreeBSD.ORG Subject: screen not restored on exit of (less|more|vi|.*) Message-ID: <m0zaC2Y-0008G3C@rip.psg.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0zaC2Y-0008G3C>