]> git.pld-linux.org Git - packages/console-tools.git/commitdiff
- echo anything to stdout only if it is a tty kbd-1_06-6
authorJacek Konieczny <jajcus@pld-linux.org>
Wed, 19 Sep 2001 14:37:36 +0000 (14:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    console.sh -> 1.9

console.sh

index cd67f6815cc7cac4795260997a75eee91f8a79ef..1e0e6bcd827cfc9d86fecd6652ad2d80668919bf 100644 (file)
@@ -7,7 +7,7 @@ case $TERM in
                if [ "$CONSOLEMAP" != "" ]; then
                        # Switch the G0 charset map from the default ISO-8859-1
                        # to the user-defined map (loaded with consolefonts)
-                       if [ -w /proc/$$/fd/0 ]; then
+                       if [ -w /proc/$$/fd/0 -a -t 0]; then
                                echo -n -e '\033(K' > /proc/$$/fd/0
                        else
                                echo -n -e '\033(K' > /dev/tty
This page took 0.059913 seconds and 4 git commands to generate.