aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xlang.csh10
1 files changed, 7 insertions, 3 deletions
diff --git a/lang.csh b/lang.csh
index 6471cd49..691c34d7 100755
--- a/lang.csh
+++ b/lang.csh
@@ -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