Subject: Patch to enable window to use a larger screen.
To: None <port-pc532@sun-lamp.cs.berkeley.edu>
From: Julian Howard Stacey <stacey@guug.de>
List: port-pc532
Date: 06/21/1994 11:55:14
`window' is a great program for squeezing 2 (or more) windows out of 1 tty on
the 4 usable pc532 netbsd ttys,
but it's very tight, squeezing into a 24*80 screen ....
Anyone (like me :-) enjoying the luxury of a large screen front end to
pc532-netbsd (in my case via an svga i486 running FreeBSD + X-Windows )
can get round the small window problem by applying a patch like this:
XXXXXXXXX
*** /usr/src/share/termcap/termcap.src.orig Thu Jan 1 09:00:22 1970
--- /usr/src/share/termcap/termcap.src Thu Jan 1 10:03:04 1970
***************
*** 1957,1962 ****
--- 1957,1967 ----
:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:\
:ho=\E[H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:pt:sr=2*\EM:vt#3:xn:\
:sc=\E7:rc=\E8:cs=\E[%i%d;%dr:
+ # vt_100_l57 is a hook by stacey@freefall.cdrom.com to allow his pc532-netbsd
+ # tty to be presented as 2 decent size windows within a full screen length
+ # xterm running kermit on FreeBSD
+ vt_100_l57:\
+ :li#57:tc=vt100:
vt100-nam|dec-vt100-nam|vt100nam|vt100 w/no am:\
:am@:xn@:\
:is=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h:ks=\E[?1h\E=:ke=\E[?1l\E>:\
XXXXXXXXX
Then do this:
cd /usr/src/share/termcap
make -i # -i because my nroff is broken (pc532/gcc 2.5.8 games)
su
make -i install
setenv TERM vt_100_l57 # perhaps put this in ~/.login
Create ~/.windowrc with
window row = 0, nrow = 28
window row = 29, nrow = 57, label = "Window"
window
setenv LINES 28 # inside each new window
PS
It seems vi is quite happy with a simple
setenv LINES 28
but I couldn't condition `window' to know what size glass screen it was
operating in, any more simply than as shown above.
If I've blindly missed a simpler way, I'd be happy to hear it.
Julian H. Stacey Munich, Germany Tel. +49 89 268616 TZ=GMT+1
<stacey@freefall.cdrom.com> California, forwarded.
<julian@pcsbst.pcs.com> Munich, Fridays.
<jhs@reseq.e-technik.tu-muenchen.de> Cease Use.
<stacey@guug.de> Cease Use, Expires 30th June '94.
------------------------------------------------------------------------------