/sbin/setsysfont on startup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



/sbin/setsysfont which is called by /etc/rc.sysinit sets the specified font 
and acm parameters on current terminal only, which is usually tty1. It is 
advisable to alter the script so that it would change the font on all ttys 
that might be used. Commonly those are tty1-tty6 (alt-F1-F6).

It is very important for locales, since many international users use font 
display maps, such as koi2alt for example.

I have put the following code into the /etc/rc.d/rc.local:

ltty=$(/usr/bin/tty)
source /etc/sysconfig/i18n

for i in /dev/tty[1-6]; do
 [ "$ltty" = "$i" ] && continue
 /bin/setfont $SYSFONT -m $SYSFONTACM -C $i
 echo -ne "\E(K" 2>/dev/null >$i
done


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux