SUMMARY: term not restoring screen on exit

From: Kelly Fergason (klfergason@amoco.com)
Date: Mon Sep 22 1997 - 14:53:09 CDT


Ok, thanks to all who responded to my request.

<s.voss@terradata.de>
<Lori.Blake@Frogtown.Com>
<SIseminger@atd.gmeds.com>
<Michael.Gordon@ee.ed.ac.uk>
<vogelke@c17mis.region2.wpafb.af.mil>
<jharmon@telecnnct.com>
<nikos@jimmy.harvard.edu>

Most everyone suggested a SYSV vs. BSD thing, however,
the problem doesn't occur on my cmdtool's or shelltool's
with scrolling enabled as suggested by SIseminger@atd.gmeds.com.

The problem involves the smcup and rmcup capabilities
for the terminfo file. nikos@jimmy.harvard.edu sent me a
terminfo file for xterm's which works, and is included here.

Again, thanks,

Kelly Fergason
klfergason@amoco.com

xterm|vs100|xterm terminal emulator,
        am, eslok, hs, km, mir, msgr, xenl,
        cols#80, it#8, lines#65,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
        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,
        ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L,
        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,
        rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H, sc=\E7,
        sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t^N%e^O%;,
        sgr0=\E[m, smacs=^N, smcup=\E7\E[?47h, smkx=\E[?1h\E=,
        smso=\E[7m, smul=\E[4m, tbc=\E[3g,
        tsl=\E[?E\E[?%i%p1%dT,

ORIGINAL QUESTION

Hello, I need a quick (hopefully) pointer.

Here is the situation.
I edit a file (vi or xe), I exit the editor, and the screen is
cleared or contains remnants of the file. However, I have seen
it where the screen is restored, ie. the contents are just like
it was before the edit session.

For the same user (mine), the screen is restored on a 4.1.3_U1
system but not on the SunOS 5 systems.

What I would like to know is where this is controlled. I have looked
at vi, stty, terminfo, termcap and Xdefaults. The situation occurs
with different editors, shells(csh and sh), and terminals(xterm and
sun-cmd).

Again, a simple pointer to what might control this would be appreciated.

Some info:
UE 4000 SunOS 5.5.1
Sparc 10 SunOS 5.6
Sparc 10 SunOS 4.1.3_U1
xe is a commercial xedit clone. (uniXedit)
We have a large NIS domain of 4.1.3_U1 and 5.5.1 systems.

Thanks,

Kelly Fergason
klfergason@amoco.com



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:03 CDT