diff options
author | Bill Nottingham <notting@redhat.com> | 2000-04-19 15:26:04 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2000-04-19 15:26:04 +0000 |
commit | 0618b19f2b5f40bebc72571b2f000b8c33c217e8 (patch) | |
tree | d5cd9c3e68a2e3f33af9caee0f38f22e50771364 | |
parent | 0f641b29b04982fa2745509668760467688a3c3d (diff) | |
download | initscripts-0618b19f2b5f40bebc72571b2f000b8c33c217e8.tar initscripts-0618b19f2b5f40bebc72571b2f000b8c33c217e8.tar.gz initscripts-0618b19f2b5f40bebc72571b2f000b8c33c217e8.tar.bz2 initscripts-0618b19f2b5f40bebc72571b2f000b8c33c217e8.tar.xz initscripts-0618b19f2b5f40bebc72571b2f000b8c33c217e8.zip |
fix case statement ; apparently tcsh likes fd 15??
-rwxr-xr-x | lang.csh | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -23,11 +23,15 @@ if ($sourced == 1) then if ($?SYSFONTACM) then switch ($SYSFONTACM) - case iso01*|iso02*|iso15*|koi*|latin2-ucw*: + case iso01*: + case iso02*: + case iso15*: + case koi*: + case latin2-ucw*: if ( $?TERM ) then 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 + if ( `consoletype` == "vt" ) then + echo -n -e '\033(K' > /proc/$$/fd/15 endif endif endif |