Re: Re^2: man uses ISO-Latin-1, but the default console font is ASCII
On Thu, 11 Apr 1996, David Frey wrote:
>
> #! /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
> [...]
hmm, and if you want to change the consolefont you have to
edit the /etc/init.d/kbd file?
how about something like this in the postinst:
cd /etc
ln -s ./kbd/consolefont/lat1-16.psf ./default-console-font
eventually asking questions first, and checking if the link
not already exists, even the filenames might be different ;-)))
and in /etc/init.d/kbd just add
[ -f /etc/default-console-font ] &&
setfont /etc/default-console-font 2>/dev/null
> setvesablank on # enable VESA blanking
hmm, what does setvesablank do on non-intel machines?
> # 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
and how about the other virtual consoles (which might exist)? maybe
better is
for t in /dev/tty[0-9] /dev/tty[0-9][0-9]
[ -f $i ] && echo -ne '\033[1;6]' > $i
done
... what does this echo actually do?
jjm
--
Juergen Menden | Disclaimer: The opinions expressed by me,
tel: +49 (89) 2051 - 2387 +-----------+ are (usually) not the opinions
e-mail: menden@informatik.tu-muenchen.de | of anyone else on this planet.
Hi! I'm a .signature virus! Add me to your .signature and join in the fun!
Reply to: