Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!wuarchive!rex!uflorida!gatech!usenet.ins.cwru.edu!ncoast!allbery From: allbery@NCoast.ORG (Brandon S. Allbery KB8JRR/AA) Newsgroups: comp.unix.programmer Subject: Re: termcap str + params -> control seq. How? Message-ID: <1991Apr16.014017.6481@NCoast.ORG> Date: 16 Apr 91 01:40:17 GMT References: <4797@cernvax.cern.ch> <7068@auspex.auspex.com> <4866@cernvax.cern.ch> Reply-To: allbery@ncoast.ORG (Brandon S. Allbery KB8JRR/AA) Followup-To: comp.unix.programmer Organization: North Coast Public Access Un*x (ncoast) Lines: 39 As quoted from <4866@cernvax.cern.ch> by jmg@cernvax.cern.ch (mike gerard): +--------------- | But terminfo has nothing in there for switching between 80-column and | 132-column mode (useful when emulating an IBM 3278-5): what would you | suggest that I do there? +--------------- I defined rs3 as the name of the terminfo description to use for a "wider" version of the terminal, rs1 as the one for a "narrower" version, and is3 in each to be the string to set the terminal to the proper mode. +--------------- | I could also do with a sequence to set the cursor type (block/underline, | blinking/unblinking). +--------------- Look at the uses of civis/cnorm/cvvis. +--------------- | Doubtless other people have other ideas and needs: what should we all do | if we only have terminfo? +--------------- Gradually expand it to be useful *while arranging for compatibility*, as AT&T has been doing. Granted, it's a slow process, but I find that I only have to keep *one* terminfo description for a terminal, versus as many different termcaps as makers of programs that corrupt it in their own incompatible ways. (SVR3, SCO, Informix, Unify, MultiView, Progress, Uniplex, ... every single new program we get has a new termcap-variant, most of which can be folded into a single SVR3.2 terminfo entry with little or no loss of information.) Since I have to maintain all these things, having one *standard* terminal capability database format is exceedingly useful. ++Brandon -- Me: Brandon S. Allbery Ham: KB8JRR/AA on 2m, 220, 440, 1200 Internet: allbery@NCoast.ORG (QRT on HF until local problems fixed) America OnLine: KB8JRR // Delphi: ALLBERY AMPR: kb8jrr.AmPR.ORG [44.70.4.88] uunet!usenet.ins.cwru.edu!ncoast!allbery KB8JRR @ WA8BXN.OH