From owner-freebsd-current Thu Mar 27 14:32:42 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA29182 for current-outgoing; Thu, 27 Mar 1997 14:32:42 -0800 (PST) Received: from hydrogen.nike.efn.org (metriclient-3.uoregon.edu [128.223.172.3]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA29165 for ; Thu, 27 Mar 1997 14:32:25 -0800 (PST) Received: (from jmg@localhost) by hydrogen.nike.efn.org (8.8.4/8.8.4) id OAA25314; Thu, 27 Mar 1997 14:32:11 -0800 (PST) Message-ID: <19970327143210.04552@hydrogen.nike.efn.org> Date: Thu, 27 Mar 1997 14:32:10 -0800 From: John-Mark Gurney To: FreeBSD Current Cc: Joerg Wunsch Subject: Re: problem with tput being to strict? References: <19970327043947.41187@hydrogen.nike.efn.org> <19970327211524.IM61026@uriah.heep.sax.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.67 In-Reply-To: <19970327211524.IM61026@uriah.heep.sax.de>; from J Wunsch on Thu, Mar 27, 1997 at 09:15:24PM +0100 Reply-To: John-Mark Gurney Organization: Cu Networking X-Operating-System: FreeBSD 2.2-960801-SNAP i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk J Wunsch scribbled this message on Mar 27: > As John-Mark Gurney wrote: > > > hello... it seems that tput is being a bit to strict on it's interpetation > > of escape characters... if I run tput init with TERM=tek4107... I will > > get this error message: > > tput: unknown % escape `!' for capability `is' > > The tek4107 `is' entry is buggy. `%' is a special character inside a > string capability (see the `cm' capability to learn what it's good > for). The %'s should be replaced by \045. not much... it still breaks... see: Script started on Thu Mar 27 14:26:36 1997 hydrogen,ttyp0,/tmp/gated/gated-R3_6Alpha_2/src,501$echo $TERMCAP tek4107|tek4207|4107|4207:ti=\E[?6l\E[H\E[J:te=\E[?6h\E\045\0410\ELBP0\E\045\0411\E[32;1f:is=\E\045\0410\ELBP0\E\045\0411\E[H\E[2g\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[J:li#32:do=^J:al=3\E[L:xn:am:le=^H:bs:cd=\E[J:ce=5\E[K:cl=156\E[H\E[J:cm=\E[%i%d;%dH:co#80:dc=4\E[P:dl=3\E[M:ho=\E[H:ic=4\E[@:md=\E[1m:mr=\E[7m:mb=\E[5m:me=\E[m:ku=\EM:kd=\ED:kl=\E[D:kr=\E[C:kh=\E[H:ul:pt:bw:bt=\E[Z:mi:nd=\E[C:se=\E[m:so=\E[7m:ue=\E[m:us=\E[4m:up=\EM: hydrogen,ttyp0,/tmp/gated/gated-R3_6Alpha_2/src,502$tput init tput: unknown % escape `!' for capability `is' hydrogen,ttyp0,/tmp/gated/gated-R3_6Alpha_2/src,503$exit Script done on Thu Mar 27 14:26:50 1997 I still contend it's because tput is to strict... you see... tgetstr that is used to obtain the above screen returns the screen with all the chars as their proper ones... i.e. \E is really ESC... but then it later scans though the string searching for replacable parameters... it finds a %.. it looks at what is following... it's a !... that isn't on of the types of replacable chars.. and bails... I guess the REAL fix would be to replace all % with %%... but then handling the code to "fix" this problem would be REALLY ugly... -- John-Mark Modem/FAX: (541) 683-6954 (FreeBSD Box) Live in Peace, destroy Micro$oft, support free software, run FreeBSD (unix)