*BSD News Article 48568


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.sprintlink.net!howland.reston.ans.net!xlink.net!rz.uni-karlsruhe.de!news.uni-stuttgart.de!uni-regensburg.de!lrz-muenchen.de!fauern!news.tu-chemnitz.de!irz401!uriah.heep!bonnie.heep!not-for-mail
From: j@bonnie.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: [Q]: 132 columns for SVGA
Date: 9 Aug 1995 10:06:49 +0200
Organization: Private U**x site, Dresden.
Lines: 35
Message-ID: <409qap$s84@bonnie.tcd-dresden.de>
References: <4073se$mu@rdserv.sie.siemens.co.at> <4075q3$f4u@gate.sinica.edu.tw>
Reply-To: joerg_wunsch@uriah.heep.sax.de
NNTP-Posting-Host: 192.109.108.139
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Brian Tao <taob@gate.sinica.edu.tw> wrote:

[132-column mode]

>>1) Is there program, kernel configuration or anything that makes such a mode
>>   setting ?
>
>    Try recompiling the kernel with the pcvt console drive instead of
>the standard SCO-compatible one.

>     -1   Sets 132 columns mode (only available on VGA adaptors).

Disclaimer:

Unlike Linux (which switches to 132 columns using the VGA BIOS and
simply doesn't touch the VGA registers later), pcvt needs to know how
to turn your VGA into 132-column mode (and back) in order to provide
this feature.  Some commonly used VGA chipsets are supported, but i
dunno what you're using.

By default, pcvt handles all mode switches (number of lines or number
of columns changing) by setting the appropriate fields in the tty
window structure, and sending a SIGWINCH to the tty's process group
leader.  Many programs (like Emacs) can thus even handle mode changes
``on the fly''.  Likewise, the tty window size that has been in effect
at the time when you start an rlogin session will be propagated to the
remote peer (but SIGWINCHes will apparently be meaningless).  All this
is totally independent of the TERM variable (you can safely run pcvt
with TERM=vt100 all the time), since the tty window size is normally
overriding TERM.
-- 
cheers, J"org                      private:   joerg_wunsch@uriah.heep.sax.de
                                   http://www.sax.de/~joerg/

Never trust an operating system you don't have sources for. ;-)