Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Mar 1997 14:32:10 -0800
From:      John-Mark Gurney <jmg@hydrogen.nike.efn.org>
To:        FreeBSD Current <freebsd-current@freebsd.org>
Cc:        Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de>
Subject:   Re: problem with tput being to strict?
Message-ID:  <19970327143210.04552@hydrogen.nike.efn.org>
In-Reply-To: <19970327211524.IM61026@uriah.heep.sax.de>; from J Wunsch on Thu, Mar 27, 1997 at 09:15:24PM %2B0100
References:  <19970327043947.41187@hydrogen.nike.efn.org> <19970327211524.IM61026@uriah.heep.sax.de>

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



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