]> git.pld-linux.org Git - projects/rc-scripts.git/blobdiff - lang.csh
- merge from TOTALNEW branch (see NEWS for more info)
[projects/rc-scripts.git] / lang.csh
index 8dd92a54af5c1d8a085b03b7e9ae544687c3d4b2..0e5028b8f5af66b59de117e36cfd26dfbd8067e2 100755 (executable)
--- a/lang.csh
+++ b/lang.csh
@@ -1,6 +1,6 @@
 #!/bin/csh
 #
-#      $Id: lang.csh,v 1.3 1999/12/15 18:41:05 misiek Exp $
+#      $Id: lang.csh,v 1.4 2001/05/15 16:03:33 baggins Exp $
 #
 
 test -f /etc/sysconfig/i18n
@@ -22,29 +22,18 @@ if ($status == 0) then
        setenv TERM=$SYSTERM
     endif
 
-#    # Set console font map.
-#    if ($?UNIMAP) then
-#      loadunimap $UNIMAP
-#    endif
+    if ($?_XKB_CHARSET) then
+       setenv _XKB_CHARSET
+    endif
 
-    if ($?SYSFONTACM) then
-        switch ($SYSFONTACM)
-            case iso01*|iso02*|iso15*|koi*|latin2-ucw*:
-                if ( "$TERM" == "linux" ) then
-                    if ( ls -l /proc/$$/fd/0 2>/dev/null | grep -- '-> /dev/tty[0-9]*$' >/dev/null 2>&1)  then
-                        echo -n -e '\033(K' > /proc/$$/fd/0
-                    endif
-                endif
-                breaksw
-        endsw
+    if ($?INPUTRC) then
+       setenv INPUTRC
     endif
 
-    if ($?SYSTERM) then
-       switch ($SYSTERM)
-       case linux-lat:
-               setenv LESSCHARSET=latin1
-               setenv INPUTRC=/etc/inputrc
-               breaksw
-       endsw
+    if ($?LESSCHARSET) then
+       setenv LESSCHARSET
+    else if ($TERM == linux-lat) then
+       setenv LESSCHARSET latin1
     endif
+
 endif
This page took 0.036865 seconds and 4 git commands to generate.