🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.terminals
Article #1000

Adding 2 to a %d in TERMCAP

#1000
From: Who, Me??
Date: Thu, 03 Jan 1991 00:30
33 lines
1637 bytes



    I am modifying a VT100 termcap entry to more or less shift the
screen down one row.  (To allow a status line at the top of the
screen.) The two commands that I am having problems changing are cs 
and cm (Set scroll region and goto row, column).

   The problem is that the cm is currently set to cm=5\E[%i%d;%dH and
cs set to cs=\E[%i%d;%dr. Since the row parameter is already increased
by one by the %i, I can't increase it again with %i (I tried and it
increased the second parameter (%i%i%d;%dr))

   I considered using %>xy, but that would fail when the row ='s 0 (the
lowest x I could have would be 0).

   So, how can I add one more to a parameter that is already %i'd?


   Thanks for any help!
		Rich Rauenzahn

(Although I'd still like to find out the answer - if anyone has a
termcap entry for vt100 that has a status line (top or bottom -
preferably top) I'd appreciate a copy!  Thanks again..)


-- 
+-------------------------- ----+- - - ----- --------- - -	-	-- -  +
| rrauenza@PolySlo.CalPoly.EDU  |  Hi!  I'm a  1         ( rest of sig under  )
| rrauenza@Ares.CalPoly.EDU     |            ----- Major ( construction until )
+------------ - -- - -  --- - - + - -         sin        ( further notice...  )
Technical Details
Message-ID: <27827b34.4ede@petunia.CalPoly.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!jarthur!petunia!news

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!jarthur!petunia!news
From: rrauenza@polyslo.CalPoly.EDU (Who, Me??)
Newsgroups: comp.terminals
Subject: Adding 2 to a %d in TERMCAP
Message-ID: <27827b34.4ede@petunia.CalPoly.EDU>
Date: 3 Jan 91 00:30:44 GMT
Distribution: usa
Organization: Cal Poly State University -- San Luis Obispo, CA 93407
Lines: 33