david@wubios.wustl.edu (David J. Camp) (03/03/89)
I am trying to set up termcap and terminfo entries for a 43 line terminal. Actually, it is an IBMPC with an EGA running Clarkson_NCSA_Telnet on an Ungermann-Bass NICPS2 adapter. My host is a Sun 3/260 running SunOS 4.0.1. I know that I can type 'stty rows 42' once I have connected to configure the correct mode. What I want to do instead is to have a termcap entry for that terminal that will specify that mode automatically when I enter the terminal type to tset. How do I specify an 'stty' option from termcap or terminfo? Is there somewhere else that I need to specify this option instead? -David- -- Bitnet: david@wubios.wustl ^ Mr. David J. Camp Internet: david%wubios@wucs1.wustl.edu < * > Box 8067, Biostatistics uucp: uunet!wucs1!wubios!david v 660 South Euclid Washington University Medical School Saint Louis, MO 63110
jbayer@ispi.UUCP (Jonathan Bayer) (03/04/89)
In article <323@wubios.wustl.edu> david@wubios.wustl.edu (David J. Camp) writes: >I am trying to set up termcap and terminfo entries for a 43 line >terminal. Actually, it is an IBMPC with an EGA running >Clarkson_NCSA_Telnet on an Ungermann-Bass NICPS2 adapter. > Below is a termcap entry for a vt-100, with the lines changed to 43 lines instead of the normal 24. d1|vt100|vt-100|pt100|pt-100|dec vt100:\ :am:co#80:li#43:cl=50\E[;H\E[2J:bs:cm=5\E[%i%d;%dH:nd=2\E[C:up=2\E[A:\ ^^^^^ This was changed from 24 to 43 :ce=3\E[K:cd=50\E[J:so=2\E[7m:se=2\E[m:us=2\E[4m:ue=2\E[m:\ :is=\E>\E[?1l\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:\ :if=/usr/lib/tabset/vt100:ku=\E[A:kd=\E[B:kr=\E[C:kl=\E[D:\ :kh=\E[H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:pt:xn:sr=5\EM:\ :ks=\E\075:ke=\E\076:\ :GS=\E(0:GE=\E(B:GV=x:GH=q:G1=k:G2=l:G3=m:G4=j:GU=v:\ :GD=w:GC=n:GL=t:GR=u:\ :CL=\EOP:CR=\EOQ:WL=\EOR:WR=\EOS:\ :UK=\E[A:DK=\E[B:LK=\E[D:RK=\E[C:\ :cs=%i\E[%2;%2r: JB -- Jonathan Bayer Beware: The light at the end of the Intelligent Software Products, Inc. tunnel may be an oncoming dragon 19 Virginia Ave. ...uunet!ispi!jbayer Rockville Centre, NY 11570 (516) 766-2867 jbayer@ispi.UUCP
geoff@desint.UUCP (Geoff Kuenning) (03/08/89)
In article <480@ispi.UUCP> jbayer@ispi.UUCP (Jonathan Bayer) writes: > Below is a termcap entry for a vt-100, with the lines changed to 43 > lines instead of the normal 24. > > d1|vt100|vt-100|pt100|pt-100|dec vt100:\ > :am:co#80:li#43:cl=50\E[;H\E[2J:bs:cm=5\E[%i%d;%dH:nd=2\E[C:up=2\E[A:\ > ^^^^^ > This was changed from 24 to 43 > ... Perhaps elm should respect the environment variables LINES and COLUMNS, even on termcap systems. Although these variables are technically defined only for terminfo, the idea seems to be very useful to me, and the implementation is simplicity itself: co = tgetnum ("co"); if (getenv ("COLUMNS") != NULL) co = atoi (getenv ("COLUMNS")); and similarly for LINES. The code above is just a sample taken from what I am going to do for ispell; it can be improved if the double call to getenv offends you. -- Geoff Kuenning geoff@ITcorp.com uunet!desint!geoff
rob@pbhyf.PacBell.COM (Rob Bernardo) (03/10/89)
In article <14@desint.UUCP> geoff@desint.UUCP (Geoff Kuenning) writes:
+Perhaps elm should respect the environment variables LINES and COLUMNS,
+even on termcap systems.
The version of ELM currently under development does, and I suspect this
was not added recently - i.e. I bet ELM 2.1 and maybe earlier versions
do as well.
--
Rob Bernardo, Pacific Bell UNIX/C Reusable Code Library
Email: ...![backbone]!pacbell!pbhyf!rob OR rob@pbhyf.PacBell.COM
Office: (415) 823-2417 Room 4E850O San Ramon Valley Administrative Center
Residence: (415) 827-4301 R Bar JB, Concord, California