Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Nov 1995 17:41:35 -0800
From:      Scott Blachowicz <scott@statsci.com>
To:        Michael Smith <msmith@atrad.adelaide.edu.au>
Cc:        questions@FreeBSD.org
Subject:   Re: how to "fix" more(1) vs termcap/terminfo? 
Message-ID:  <199511280141.RAA12840@block.statsci.com>
In-Reply-To: Your message of "Tue, 28 Nov 1995 01:12:15 %2B0000." <199511280112.BAA06455@genesis.atrad.adelaide.edu.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511280141.RAA12840>