From d3d03d15bf72d193466fb97ad876a8ae9120a2b3 Mon Sep 17 00:00:00 2001 From: Bernhard Rosenkraenzer Date: Wed, 2 May 2001 18:59:51 +0000 Subject: Support kbd in lang.{c,}sh --- lang.csh | 17 +++++++++++++++++ lang.sh | 10 +++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/lang.csh b/lang.csh index eec5b267..1ded61c6 100755 --- a/lang.csh +++ b/lang.csh @@ -20,6 +20,23 @@ if ($sourced == 1) then endif endif + if ($?CHARSET) then + switch ($CHARSET) + case 8859-1: + case 8859-2: + case 8859-15: + case koi*: + case latin2*: + if ( $?TERM ) then + if ( "$TERM" == "linux" ) then + if ( `/sbin/consoletype` == "vt" ) then + /bin/echo -n -e '\033(K' >/proc/$$/fd/15 + endif + endif + endif + breaksw + endif + endif if ($?SYSFONTACM) then switch ($SYSFONTACM) case iso01*: diff --git a/lang.sh b/lang.sh index 0a65fdc9..c7e0dc37 100755 --- a/lang.sh +++ b/lang.sh @@ -34,7 +34,15 @@ if [ "$sourced" = 1 ]; then fi [ -n "$_XKB_CHARSET" ] && export _XKB_CHARSET || unset _XKB_CHARSET - if [ -n "$SYSFONTACM" ]; then + if [ -n "$CHARSET" ]; then + case $CHARSET in + 8859-1|8859-2|8859-15|koi*) + if [ "$TERM" = "linux" -a "`/sbin/consoletype`" = "vt" ]; then + echo -n -e '\033(K' 2>/dev/null > /proc/$$/fd/0 + fi + ;; + esac + elif [ -n "$SYSFONTACM" ]; then case $SYSFONTACM in iso01*|iso02*|iso15*|koi*|latin2-ucw*) if [ "$TERM" = "linux" -a "`/sbin/consoletype`" = "vt" ]; then -- cgit v1.2.1