🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #15761

Re: uw window resizing for BSD 4.2 kludge

#15761
From: Earle R. Horton
Date: Fri, 24 Apr 1987 01:45
43 lines
2903 bytes
In article <7280@mordor.s1.gov>, jdb@mordor.s1.gov (John Bruner) writes:
> >This is those uw users who have to work with 4.2 BSD or programs on
> >4.3 BSD that don't know about window resizing... It won't work for those
> >who have an enlarged screen with more than 100 rows or columns, but I
> >haven't heard of such a beast yet.
> 
> If you're using the UW server on a machine that doesn't handle window
> resizing (i.e. 4.2BSD without something like Sun's TIOCSSIZE ioctl),
> then you won't be able to change the actual size of the window on
> the Mac (even if you select "actual size").  

I beg to differ, John.  If you set the window settings in uw to 
"change view size" (I think that's right, I don't have my Mac here.)
and then use my setenv/sed kludge, you change the TERMCAP entry in
your environment to reflect the new rows/columns you desire.  Then 
when you run vi, emacs, more, whatever, you can get the display
to have the number of rows and columns you have specified.  I do this
all the time.  I use the 7-point font option, and make the window as
big as my Mac screen allows, approximately 36 rows by 93 columns. 
Then I type in "big" (aliases included below) and get a 36x90 display
that works fine with JOVE on an IBM RT running 4.2.  I guess it's a
matter of definition, I am under the impression that if I can successfully
display a larger window, then I have changed the "actual" size, although
perhaps not the "'actual'" size.  Anyway, this works, but I think 
"change view size" is the appropriate setting to use.  My Mac is not
here at the moment, so I can't say for sure.  Anyway, if you try this 
and it doesn't work, change the tty setting on the Mac to the other
one and it will work.

     These aliases are also helpful if you have 4.3 and you want to run
a program that doesn't understand tty resizing, which is the case when
management won't pay for upgrades, programmers are overworked, or 
whatever.  Here they are for those who may have missed the earlier 
posting.

alias rows 'setenv TERMCAP "`setenv|sed -n -e s,li#..,li#\!*, -e s,TERMCAP=,,p`"'
alias columns 'setenv TERMCAP "`setenv|sed -n -e s,co#..,co#\!*, -e s,TERMCAP=,,p`"'
alias big 'rows 36;columns 90'
alias small 'rows 24;columns 80'

Hope this clarifies things.

Earle
Technical Details
Message-ID: <6060@dartvax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!mit-eddie!genrad!decvax!dartvax!earleh
References: <6028@dartvax.UUCP> <7280@mordor.s1.gov>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!mit-eddie!genrad!decvax!dartvax!earleh
From: earleh@dartvax.UUCP (Earle R. Horton)
Newsgroups: comp.sys.mac
Subject: Re: uw window resizing for BSD 4.2 kludge
Message-ID: <6060@dartvax.UUCP>
Date: Thu, 23-Apr-87 21:45:37 EDT
Article-I.D.: dartvax.6060
Posted: Thu Apr 23 21:45:37 1987
Date-Received: Sun, 26-Apr-87 20:38:32 EDT
References: <6028@dartvax.UUCP> <7280@mordor.s1.gov>
Organization: Society for the Prevention of Cruelty to Graduate Students
Lines: 43
Summary: yes it can