>> When running vi under SunOS 4.1.3, after completing
>> the edit, my terminal is pleasantly returned to
>> it's original state. For example, I can see the
>> output of the last ls command I ran before running
>> Under Solaris 2.4, the text previously on the terminal
>> is gone and I see part of the file I was editing instead.
>> I find this horrible, and in fact it effectively eliminates
>> the value of the scrollbar on my xterms.
>> This definitely seems to be a problem with vi (or the curses
>> library or something) because when rlogin'd to a SunOS
>> machine from my Solaris machine, vi works as desired.
>> It doesn't seem to be related to the terminal program, as
>> the behavior is the same under xterm or shelltool.
Tony> No, I don't think so. xterm should be like vt220 (or is it vt102 -
Tony> can't recall for certain now) in that it can save and restore parts of
Tony> the screen. It's a term problem, not one with vi (or curses).
>> Anyone know why this is, or better yet what I can do to
>> get the SunOS behavior under Solaris.
Tony> Not too sure, but try asking this question in comp.terminals, as the
Tony> gurus there might be able to point you in the right direction.
When we moved from SunOS to Solaris, I noticed the new behavior. I
found a terminfo description with the missing "smcup" and "rmcup"
entries. Using that description instead of the default one gave us
back the "restoring" behavior.
Here is the "xterm" description I've been using:
xterm|vs100|xterm terminal emulator,
am, eslok, hs, km, mir, msgr, xenl,
cols#80, it#8, lines#65,
bel=^G, blink=\E[5m$<2>, bold=\E[1m, clear=\E[H\E[2J,
cr=\r, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\b,
cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
dsl=\E[?E, ed=\E[J, el=\E[K, el1=\E[1K$<3>,
enacs=\E(B\E)0, fsl=\E[?F, home=\E[H, ht=\t, hts=\EH,
ind=\n, ka1=\EOq, ka3=\EOs, kb2=\EOr, kbs=\b,
kc1=\EOp, kc3=\EOn, kcub1=\EOD, kcud1=\EOB,
kcuf1=\EOC, kcuu1=\EOA, kent=\EOM, kf0=\EOy, kf1=\EOP,
kf10=\EOx, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOt,
kf6=\EOu, kf7=\EOv, kf8=\EOl, kf9=\EOw, rc=\E8,
rev=\E[7m, ri=\EM, rmacs=^O, rmcup=\E[2J\E[?47l\E8,
rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
sgr0=\E[m, smacs=^N, smcup=\E7\E[?47h, smkx=\E[?1h\E=,
smso=\E[7m, smul=\E[4m, tbc=\E[3g,