]> git.pld-linux.org Git - packages/console-tools.git/blob - console.sh
- start unicode for utf8 locales.
[packages/console-tools.git] / console.sh
1 if (tty -s); then
2  case $TERM in
3   linux)
4         if [ -f /etc/sysconfig/console ]; then
5                 . /etc/sysconfig/console
6
7                 [ -f /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
8                 case "$LANG" in
9                         *.utf8|*.UTF-8)
10                                 [ -x /bin/unicode_start ] && /sbin/consoletype fg && /bin/unicode_start
11                         ;;
12                 esac
13
14                 if [ "$CONSOLEMAP" != "" ]; then
15                         # Switch the G0 charset map from the default ISO-8859-1
16                         # to the user-defined map (loaded with consolefonts)
17                         if [ -w /proc/$$/fd/0 -a -t 0 ]; then
18                                 echo -n -e '\033(K' > /proc/$$/fd/0
19                         else
20                                 echo -n -e '\033(K' > /dev/tty
21                         fi
22                 fi
23                 
24         fi
25         ;;
26  esac
27 fi
This page took 0.025928 seconds and 4 git commands to generate.