Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site varian.UUCP Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!tektronix!zehntel!varian!david From: david@varian.UUCP (David Brown) Newsgroups: net.info-terms Subject: need termcap/cm help - tvi955 Message-ID: <362@varian.UUCP> Date: Wed, 28-Aug-85 19:58:14 EDT Article-I.D.: varian.362 Posted: Wed Aug 28 19:58:14 1985 Date-Received: Mon, 2-Sep-85 03:55:51 EDT Distribution: net Organization: Varian, Walnut Creek, CA Lines: 41 We just received some TeleVideo 955 terminals -- this a new model -- cheap (~$400) and loaded with features -- 80/132 columns, embedded or non-embedded attributes, programmable function keys, 14" screen in green or amber, etc. So far we're happy with them, but I've run into a problem in creating a termcap for them. What I've done so far (for those with similar terminals): I used the tvi950 termcap and removed vb (visual bell), is (init string), vs, ve (vi start and end sequence) because I didn't like what they did. I also deleted ug and sg (underline and standout mode glitch count) and added xs because I want to use no-space attributes. The problem: cursor motion (cm)! For columns 1 through 80, the cursor motion is the same as for other TeleVideo terminals (and many other terminals as well) -- cm = \E=%+\040%+\040 (ESC = r c, where row and column are added to space to make them printable). BUT .. for columns 81 through 132, the sequence is: ESC = r ~ c and the value of c is calculated by subtracting 80 from the column number and then adding space. This is the first time I've seen a cursor motion sequence like this, and I can't find anyway to specify something like this. Does anyone have any ideas? Or is this something that termcap can't handle without modifications (adding new definitions to termcap and adding new code to termlib/tgoto)? The closest thing to what I need is the %> specification to cm, but I don't think it does exactly what I need (I might be able to modify a value if it's greater than some constant, but how does it know when to output the tilde?). -- David Brown (415) 945-2199 Varian Instruments 2700 Mitchell Dr. Walnut Creek, Ca. 94598 {zehntel,dual,amd,fortune,rtech}!varian!david