From owner-freebsd-bugs Wed Aug 27 22:20:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA08723 for bugs-outgoing; Wed, 27 Aug 1997 22:20:03 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA08703; Wed, 27 Aug 1997 22:20:01 -0700 (PDT) Resent-Date: Wed, 27 Aug 1997 22:20:01 -0700 (PDT) Resent-Message-Id: <199708280520.WAA08703@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, john@tlh.org Received: from circus.tlh.org (tlh.dial.idiom.com [206.14.80.26]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA08493 for ; Wed, 27 Aug 1997 22:14:11 -0700 (PDT) Received: (from john@localhost) by circus.tlh.org (8.8.7/8.8.5) id WAA21270; Wed, 27 Aug 1997 22:13:57 -0700 (PDT) Message-Id: <199708280513.WAA21270@circus.tlh.org> Date: Wed, 27 Aug 1997 22:13:57 -0700 (PDT) From: John Fox Reply-To: john@tlh.org To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/4404: /usr/bin/more uses termcap ti and te Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 4404 >Category: bin >Synopsis: /usr/bin/more uses termcap ti and te >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Aug 27 22:20:01 PDT 1997 >Last-Modified: >Originator: John Fox >Organization: >Release: FreeBSD 2.2-STABLE i386 >Environment: 2.2-stable on August 17. (But looking at the RCS files suggests the problem has always been there.) >Description: /usr/bin/more uses the termcap "ti" and "te" sequences. If they are set (as they are by the xterm entries in the XFree86 3.3 xterm termcap additions) to save the screen and replace it after the program exits, that means that (1) when more exits, whatever was displayed vanishes, and (2) less than one-screen displays don't display at all: the screen just flashes. (2) is particularly bad for programs that use more as a pager, like "man" and "mail," because if the man page or mail message is less than one page, you can never see it. I have quickly tried "more" with the same xterm termcap entries on . SunOS 4.1.3 . Solaris 2.5 . AIX . HPUX . Nextstep 3.3 . DEC OSF1 . DEC Ultrix and it never uses the "ti" and "te" sequences, although, e.g., vi almost always does. >How-To-Repeat: Use this xterm termcap entry from the XFree86 3.3.1 distribution (that their installation recommends): # $XConsortium: termcap,v 1.13 94/10/13 21:24:32 gildea Exp $ # $XFree86: xc/programs/xterm/termcap,v 3.9.2.2 1997/06/18 08:26:29 dawes Exp $ vs|xterm|xterm-24|xterms|vs100|xterm (X Window System):\ :is=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>:\ :rs=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>:\ :AL=\E[%dL:DL=\E[%dM:DC=\E[%dP:DO=\E[%dB:UP=\E[%dA:\ :LE=\E[%dD:RI=\E[%dC:\ :al=\E[L:am:\ :bl=^G:\ :cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:co#80:\ :cs=\E[%i%d;%dr:ct=\E[3g:\ :dc=\E[P:dl=\E[M:\ :ho=\E[H:\ :im=\E[4h:ei=\E[4l:mi:\ :ks=\E[?1h\E=:ke=\E[?1l\E>:\ :k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\ :k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:\ :k;=\E[21~:F1=\E[23~:F2=\E[24~:\ :kn#12:\ :@7=\EOF:kh=\EOH:\ :@0=\E[1~:kI=\E[2~:kD=\E[3~:\ :*6=\E[4~:kP=\E[5~:kN=\E[6~:\ :km:\ :kb=^H:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:\ :li#24:md=\E[1m:me=\E[m:mr=\E[7m:ms:nd=\E[C:\ :eA=\E)0:as=^N:ae=^O:\ :ml=\El:mu=\Em:\ :sc=\E7:rc=\E8:sf=\n:so=\E[7m:se=\E[27m:sr=\EM:\ :st=\EH:\ :ti=\E7\E[?47h:te=\E[2J\E[?47l\E8:\ :vi=\E[?25l:ve=\E[?25h:\ :up=\E[A:us=\E[4m:ue=\E[24m:xn:\ :ut:Co#8:op=\E[39;49m:AB=\E[4%dm:AF=\E[3%dm:\ :pa#64:Sf=\E[3%dm:Sb=\E[4%dm: >Fix: In /usr/src/usr.bin/more Either: 1. In screen.c comment out lines 319 and 323. 2. In main.c comment out lines 306 and 368. >Audit-Trail: >Unformatted: