aboutsummaryrefslogtreecommitdiffstats
path: root/lang.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lang.sh')
-rwxr-xr-xlang.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/lang.sh b/lang.sh
index 709c1c52..f31c34e2 100755
--- a/lang.sh
+++ b/lang.sh
@@ -30,6 +30,11 @@ if [ -f /etc/sysconfig/i18n ]; then
LESSCHARSET=latin1
INPUTRC=/etc/inputrc
export LESSCHARSET INPUTRC
+ 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
+ fi
+ fi
;;
esac
fi