Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!uakari.primate.wisc.edu!aplcen!boingo.med.jhu.edu!haven.umd.edu!mimsy!mimsy.umd.edu!hhchou From: hhchou@nell.cs.umd.edu (Hui-Hsien Chou) Newsgroups: comp.sys.mac.comm Subject: Re: Looking for termcap entry for Zterm Message-ID: Date: 29 Apr 91 19:06:40 GMT References: <1991Apr29.161928.22100@progress.com> Sender: news@mimsy.umd.edu Distribution: usa Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 95 In-reply-to: erf@progress.COM's message of 29 Apr 91 16:19:28 GMT In article <1991Apr29.161928.22100@progress.com> erf@progress.COM (Eric Feigenson) writes: I need a termcap (terminfo would do, as well) for Unix that describes Zterm. I know vt100 emulation "works" but the vt100 (and ansi) termcap entries on the systems I use force the window size to 24 lines, which is a bummer if my window size has 58 lines (which it usually does). Is there a way to ask Zterm from Unix how many lines is on the window? If so, does anyone have a termcap/ terminfo entry that does this? Thanks in advance! Please e-mail replies. -EricF Sorry I post my reply to the net since I think this is a general problem. I don't know whether you can let Unix ask Zterm how many lines it has. (Probably you can't do this, I guess.) But if your Zterm lines are fixed (probably so, you won't change screen height very often.), say 58 lines, then there are some very easy ways to cure this problem. Method 1. Just let your TERM be vt100, but put the following command in your startup script (.cshrc, if you use csh.) stty rows 58 Method 2. Or let your TERM be aabbcc (or whatever you name.), and TERMCAP be ~/.termcap, and put the file .termcap in your home directory. The content of .termcap is listed at the end. Doing this way will have the benefit of quicker startup (because you don't have to call the command stty.) and flexibility of modifications (you may change your column width to 132 in addition to lines be 58). Of course if you are the system administrator, you can just modify your system termcap file under /etc accordingly. (I mean if you OWN the computer, :-) Appendix: Content of .termcap d0|aabbcc|mac-am|zterm:\ :am:\ :al=\E[L:\ :bl=^G:\ :bs:\ :cd=50\E[J:\ :ce=3\E[K:\ :cl=50\E[;H\E[2J:\ :cm=10\E[%i%d;%dH:\ :co#80:\ :cr=^M:\ :cs=\E[%i%d;%dr:\ :dc=\E[P:\ :dl=\E[M:\ :do=^J:\ :ei=\E[4l:\ :ho=\E[H:\ :im=\E[4h:\ :is=\E[1;24r\E[24;1H:\ :k1=\EOP:\ :k2=\EOQ:\ :k3=\EOR:\ :k4=\EOS:\ :kb=^H:\ :kd=\EOB:\ :ke=\E[?1l\E>:\ :kl=\EOD:\ :kr=\EOC:\ :ks=\E[?1h\E=:\ :ku=\EOA:\ :le=^H:\ :li#58:\ :md=2\E[1m:\ :mr=2\E[7m:\ :mb=2\E[5m:\ :me=2\E[m:\ :mi:\ :nd=\E[C:\ :nl=^J:\ :pt:\ :rc=\E8:\ :rf=/usr/lib/tabset/vt100:\ :rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:\ :sc=\E7:\ :se=\E[m:\ :so=\E[7m:\ :sr=\EM:\ :ta=^I:\ :ue=\E[m:\ :up=\E[A:\ :us=\E[4m:\ :vt#3:\ :xn: