Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!oddjob!uwvax!dave From: dave@spool.wisc.edu (Dave Cohrs) Newsgroups: comp.unix.wizards Subject: Re: Window size in 4.3BSD and tset Message-ID: <4280@spool.wisc.edu> Date: Wed, 16-Sep-87 09:11:37 EDT Article-I.D.: spool.4280 Posted: Wed Sep 16 09:11:37 1987 Date-Received: Fri, 18-Sep-87 07:16:24 EDT References: <813@saturn.ucsc.edu> Sender: news@spool.wisc.edu Reply-To: dave@spool.wisc.edu (Dave Cohrs) Organization: U of Wisconsin CS Dept Lines: 34 Keywords: windows 4.3 tset Summary: use stty to set your window size In article <813@saturn.ucsc.edu> haynes@ucscc.UCSC.EDU (Jim Haynes) writes: > [ ... ] if you change a terminal from 80-column >mode to 132-column mode and run tset, the window parameters stay >at 80 cols and vi continues to wrap around at the 80th column. > >Does anybody know why it should be this way, and why tset shouldn't >set the window parameters regardless of whether they were found to >be zero? First, you don't need to log out to let "vi" know your window size changed. Check out stty(1). If you do as you described, follow that with the command: stty columns 132 and run vi (or, if you stopped it, just "fg" it) and it will get your window size right. Making "tset" set the window size parameters is a kludge at best. The reason you don't want it to do so in general is because lots of people use these parameters for *real* windows, and windows, in general, can change size to almost any shape you want. I doubt that you'd want a separate termcap entry for each possible window size. Anyway, once you set your window to some size, the window manager, or the program maintaining the individual window, usually sets the window size parameters automatically and send a SIGWINCH signal, so you don't have to run "tset" or "stty" for your programs to know the new window size. If "tset" were to reset these dimensions to your termcap dimensions, all this would have gone for naught (comments about whether the BSD window method is right or not will happily be ignored). Dave Cohrs Proud member of NOTHING +1 608 262-6617 UW-Madison Computer Sciences Dept. dave@cs.wisc.edu ...!{harvard,ihnp4,rutgers,ucbvax}!uwvax!dave