diff options
author | Bill Nottingham <notting@redhat.com> | 2006-10-19 19:44:16 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2006-10-19 19:44:16 +0000 |
commit | db147bb0ed160708501ffae23eaf896da0dc7b91 (patch) | |
tree | 4337c2bb2d6edd8d5d32c76b6b1945f5817f9eb5 /lang.csh | |
parent | f87c918914e0a482670d76f17ba94803ccb191bb (diff) | |
download | initscripts-r8-31-6.tar initscripts-r8-31-6.tar.gz initscripts-r8-31-6.tar.bz2 initscripts-r8-31-6.tar.xz initscripts-r8-31-6.zip |
backport some fixesr8-31-6
Diffstat (limited to 'lang.csh')
-rwxr-xr-x | lang.csh | 21 |
1 files changed, 18 insertions, 3 deletions
@@ -25,6 +25,8 @@ if ($sourced == 1) then unsetenv LC_ALL endif endif + + set consoletype=`/sbin/consoletype` if ($?CHARSET) then switch ($CHARSET) @@ -36,7 +38,7 @@ if ($sourced == 1) then case latin2*: if ( $?TERM ) then if ( "$TERM" == "linux" ) then - if ( `/sbin/consoletype` == "vt" ) then + if ( "$consoletype" == "vt" ) then /bin/echo -n -e '\033(K' >/dev/tty endif endif @@ -54,7 +56,7 @@ if ($sourced == 1) then case latin2-ucw*: if ( $?TERM ) then if ( "$TERM" == "linux" ) then - if ( `/sbin/consoletype` == "vt" ) then + if ( "$consoletype" == "vt" ) then /bin/echo -n -e '\033(K' > /dev/tty endif endif @@ -68,7 +70,7 @@ if ($sourced == 1) then case *.UTF-8*: if ( $?TERM ) then if ( "$TERM" == "linux" ) then - if ( `/sbin/consoletype` == "vt" ) then + if ( "$consoletype" == "vt" ) then if ( -x /bin/unicode_start ) then if { /sbin/consoletype fg } then if ( $?SYSFONT ) then @@ -84,6 +86,19 @@ if ($sourced == 1) then endif endif breaksw + case *: + if ( $?TERM ) then + if ( "$TERM" == "linux" ) then + if ( "$consoletype" == "vt" ) then + if ( -x /bin/unicode_stop ) then + if { /sbin/consoletype fg } then + /bin/unicode_stop + endif + endif + endif + endif + endif + breaksw endsw endif unsetenv SYSFONTACM |