*BSD News Article 89923


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.telstra.net!psgrain!iafrica.com!uct.uni.net.za!ru.uni.net.za!wits.uni.net.za!howland.erols.net!news.mathworks.com!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: VT220 console
Date: 22 Feb 1997 23:47:14 GMT
Organization: Private BSD site, Dresden
Lines: 54
Message-ID: <5eo0i2$tp@uriah.heep.sax.de>
References: <3302AA50.2781E494@sh.cvut.cz>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:35964

Jaroslav Klaus <j.klaus@sh.cvut.cz> wrote:

(Ah, greetings to the CVUT.  Studoval jsem tadyhle v 1986eho roku... :)

> Does anybody have installed VT console on PC? I tried to install
> VT220 console. I made new kernel (sc0 disable vt0 enable), end
> edit ttys:
> ttyv0   "/usr/libexec/getty Pc"         vt220  on  secure
> 
> But after reboot I have to switch amoung consoles using
> not only <alt><f..> but with <ctrl>

Well, that's intention.  The first four VTYs have a shortcut (F8
through F12, for historical reasons), but the generic way is
Ctrl-Alt-Fn (same as in the Xserver, btw).

> and midnigth commander
> looks terribly - frames, function keys and arrows don't work 
> properly. Do I have to set keymap manually and recompile mc or
> did I make some mistakes? Thank's a lot.

pcvt sometimes has some problems with the box characters (alternate
characterset).  I never figured out why this happens.

Hmm, i've played around a little.  It's weird, i think pcvt behaves
the way that is described in the VT320 manual.  Apparently, the VT220
termcap entry doesn't match this way, however.

If you change the following capabilities in your vt100-np entry in
/usr/share/misc/termcap, it should work:

cap	from	to
as	\E(0	\E(0^O		# escape lparen zero control-o
ae	\E(B	^N\E(B

Note that ncurses and/or libdialog seems to suffer from a bug where it
sometimes doesn't call the `as' capability before starting a line; you
can notice that the upper left corner from the outer box in tzsetup
shows up as lqqqqqqq.  This does also happen in xterm.


Ah, no, i see pcvt's fault now.  G0 is mapped into GL by default.
Thus, calling \E(0 should be sufficient to designate the DEC special
graphics character set as G0, which is already mapped.  (\E(8
designates the ASCII set again.)

Alas, the problem doesn't seem to be very trivial.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)