Re^2: man uses ISO-Latin-1, but the default console font is ASCII
Hi Ian,
Ian> Mark Eichin writes ("Re: man uses ISO-Latin-1, but the default console font is ASCII"):
Ian> > Interesting, I hadn't even realized we had one. Any reason not to make
Ian> > /etc/init.d/console use
Ian> > font=iso01.f16
Ian> > by default?
Ian>
Ian> Yes. If you do that then I can't read my console after bootup,
Ian> because I'm not using the default 80x25 console size. (I have vga=4
Ian> in my lilo.conf.)
This is fixable, something like this should work:
#! /bin/sh
# /etc/init.d/kbd: load appropriate console font and keytable.
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
set `stty size`
case "$2x$1" in
80x25| 80x30|132x30)
setfont /etc/kbd/consolefonts/lat1-16.psf 2>/dev/null ;;
80x28|132x25)
setfont /etc/kbd/consolefonts/lat1-14.psf 2>/dev/null ;;
80x43)
setfont /etc/kbd/consolefonts/lat1-10.psf 2>/dev/null ;;
80x50| 80x60|132x43|132x60|*)
setfont /etc/kbd/consolefonts/lat1-08.psf 2>/dev/null ;;
esac
echo -ne '\033[9;15]\033[1;6]' # blank 15, ulcolor cyan
setvesablank on # enable VESA blanking
# Set console defaults, individually for the other virtual consoles.
# Switch to null-font mapping
for t in 1 2 3 4 5 6 7 8 ; do
echo -ne '\033[1;6]' > /dev/tty$t
done
# End of console
David
--
David Frey <david@eos.lugs.ch>|Microsoft isn't the answer...it's the QUESTION.
Schlieren, Switzerland |``No'' is the answer.
PGP-Key available on request |Use Debian GNU/Linux!
Reply to: