SUMMARY: Setting up vi-editor on Solaris 2.4

From: Nils Kalvatn Larsen (sunadmin@elg.norsar.no)
Date: Fri Jul 28 1995 - 01:24:56 CDT


The problem:

> When exiting /usr/ucb/vi on an SunOS 4.1.3, the "current xterm line" is the following
> line. No parts of the file beeing edited is displayed in the xterm-window.
>
> However, on Solaris 2.4, the visible part of the file (the part of the file currently
> beeing displayed in the xterm window), remains visible upon exiting vi. The current
> xterm-line is the line at the bottom of the xterm-window.
>
> Example from SunOs 4.1.x
> ------------------------
> 200[lunde]% cat file
> a
> b
> c
> 201[lunde]% vi file (Exit at once)
> 202[lunde]%
>
> Example from Solaris 2.4
> ------------------------
> 200[lunde]% cat file
> a
> b
> c
> 201[lunde]% vi file (Exit at once)
> a
> b
> c
> 202[lunde]%

The replies:

-------------------------------------------------------------------------------------
>>>>>>> From jeffw@triple-i.com (Jeff Wasilko)

> This looks like a difference in the way vi is using (or not using) the
> second page in the xterm.
>
> Check the Elm FAQ (in the comp.mail.elm newsgroup)--I think I saw a similar
> complaint and solution there.

-------------------------------------------------------------------------------------
>>>>>>>> From Casper Dik <casper@Holland.Sun.COM>

> SunOS 4 uses a different xterm terminfo description.
> Compile this one and use it instead (see tic)
>
> 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,

-------------------------------------------------------------------------------------
>>>>>>>> From Kevin Davidson <tkld@cogsci.ed.ac.uk>

> Read the manual page for xterm. You want to look at this section:
>
>
> titeInhibit (class TiteInhibit)
> Specifies whether or not xterm should remove remove
> ti and te terminfo entries (used to switch between
> alternate screens on startup of many screen-oriented
> programs) from the TERM string. If set, xterm also
> ignores the escape sequence to switch to the alter-
> nate screen.
>
> So set the Xterm*titeInhibit resource to do what you want. You may
> need to check that your terminfo entry for xterm is correct (ie has ti
> and te entries).
-------------------------------------------------------------------------------------

I tried compiling the xterm-terminfo lines from Casper Dik and this solved my "problem" :-)

Thanks to

   o Casper Dik
   o Kevin Davidson
   o Jeff Wasilko

Nils Kalvatn Larsen
NORSAR
Granaveien 33
2007 KJELLER
NORWAY

e-mail: Nils.Larsen@norsar.no / sysadmin@norsar.no
 



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:30 CDT