Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Nov 1995 21:03:46 -0500 (EST)
From:      Chuck Robey <chuckr@glue.umd.edu>
To:        Scott Blachowicz <scott@statsci.com>
Cc:        Michael Smith <msmith@atrad.adelaide.edu.au>, questions@freebsd.org
Subject:   Re: how to "fix" more(1) vs termcap/terminfo? 
Message-ID:  <Pine.SUN.3.91.951128205826.25291E-100000@latte.eng.umd.edu>
In-Reply-To: <199511280141.RAA12840@block.statsci.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 27 Nov 1995, Scott Blachowicz wrote:

Can I ask a question?  ti/te codes in termcap are codes intended to allow 
complicated tercap-ized programs (programs that need to put your terminal 
in some nonstandard state to get complete cursor control) a good way to 
reset the terminal .... these have nothing to do with how to actually 
start and stop a program that uses termcap, they're supposed to be 
terminal reset codes.   What did I miss, how does this have anything to 
do with more?  I thought more did real simple types of screen control, 
and wouldn't even have to use te/ti things.  If I'm wrong, I'll assume I 
lost the thread here, and keep quiet.


> Michael Smith <msmith@atrad.adelaide.edu.au> wrote:
> 
> > >     scott@block:~> echo $MORE
> > >     MORE: Undefined variable.
> > 
> > alias more ?
> Let's see here...
> 
>     scott@block:~> alias|grep more
>     mroe    more
>     scott@block:~> which more
>     /usr/bin/more
>     scott@block:~> file /usr/bin/more
>     /usr/bin/more: FreeBSD/i386 demand paged dynamically linked executable
>     scott@block:~> ldd /usr/bin/more
>     /usr/bin/more:
>             -ltermcap.2 => /usr/lib/libtermcap.so.2.1 (0x8022000)
>             -lc.2 => /usr/lib/libc.so.2.2 (0x8026000)
>     scott@block:~> echo $TERMCAP
>     /homes/scott/term/termcap
> 
> Aha!  Let's compare that termcap entry to the FreeBSD standard
> one...FreeBSD sez:
> 
>     xterm|vs100|xterm terminal emulator (X window system):\
>         :li#65:\
>         :hs: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:
> 
> and tracing back through vt220 to vt102 to vt100-np to vt100-am I don't
> see any ti/te specified.  Looking through the one I've got (which I copied
> from some other system a while back) - I DO have ti/te entries on my
> 'xterm' entry:
> 
>     vs|xterm|vs100|xterm terminal emulator (X window system):\
>         :cr=^M:do=^J:nl=^J:bl=^G:le=^H:ho=\E[H:\
>         :co#80:li#65:cl=\E[H\E[2J:bs:am:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:\
>         :ce=\E[K:cd=\E[J:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:\
>         :md=\E[1m:mr=\E[7m:me=\E[m:\
>         :ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:\
>         :k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:ta=^I:pt:sf=\n:sr=\EM:\
>         :al=\E[L:dl=\E[M:ic=\E[@:dc=\E[P:\
>         :MT:ks=\E[?1h\E=:ke=\E[?1l\E>:\
>         :is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l:\
>         :rs=\E[r\E<\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l:xn:\
>         :AL=\E[%dL:DL=\E[%dM:IC=\E[%d@:DC=\E[%dP:\
>         :hs:ts=\E[?E\E[?%i%dT:fs=\E[?F:es:ds=\E[?E:\
>         :ti=\E7\E[?47h:te=\E[2J\E[?47l\E8:
>     v2|xterms|vs100s|xterm terminal emulator (small)(X window system):\
>         :co#80:li#24:tc=xterm:
> 
> I removed the ti/te caps from my 'xterm' entry.
> 
> > More, under 2.0.5-RELEASE, 2.1-STABLE or 2.2-CURRENT does not appear
> > to use the ti/te capability in an xterm.
> 
> Do you say that because you've looked at the source code (I don't have
> mine handy right now)?  Or just that you haven't observed the effects?  In
> other words, could the lack of ti/te caps in the distributed /etc/termcap
> explain everything?
> 
> Which brings me back to my original observation that there ought to be an
> option to do one of the following:
> 
> 1) Completely disable ti/te cap usage from more.
> 2) Unconditionally force a prompt at EOF.
> 
> I suppose I should just do a 'send-pr', huh?
> 
> > Sorry I can't be more (sic) help...
> [he he] Ah, but you have been. I just need to use less more. :-)
> 
> Thanx,
> Scott Blachowicz    Ph: 206/283-8802x240    StatSci, a div of MathSoft, Inc.
>                                             1700 Westlake Ave N #500
> scott@statsci.com                           Seattle, WA USA   98109
> Scott.Blachowicz@seaslug.org
> 

============================================================================
Chuck Robey chuckr@eng.umd.edu -- I run FreeBSD on n3lxx and Journey2
---------------------------------------------------------------------------
The Dilbert Zone is Dilbert's new WWW home! The area
features never-before-seen original sketches of Dilbert, a photo tour
of Scott Adams' studio, Dilbert Trivia and memorabilia, high
school photos and much more!:
<URL:http://www.unitedmedia.com/comics/dilbert/>;




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.951128205826.25291E-100000>