diff options
author | Mattias Andrée <maandree@operamail.com> | 2012-07-24 18:03:57 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2012-07-24 18:03:57 +0200 |
commit | 7f5fc135cf005a3275e6a648f4f665429193e122 (patch) | |
tree | 56e12a23a556a6832d14aa82b16b4f6a717c4764 | |
parent | e36fdec84b75c22205f0bbe4318b12a304ff2059 (diff) | |
download | ponysay-7f5fc135cf005a3275e6a648f4f665429193e122.tar.gz ponysay-7f5fc135cf005a3275e6a648f4f665429193e122.tar.bz2 ponysay-7f5fc135cf005a3275e6a648f4f665429193e122.zip |
fix for ponyquotes in tty
-rwxr-xr-x | ponysay | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -146,7 +146,7 @@ say() { # Ponies use UTF-8 drawing characters. Prevent a Perl warning. export PERL_UNICODE=S - if [ "$TERM" = "linux" ]; then + if [ "$TERM" = "linux" ] || [ "$TERM" = "-linux-" ]; then echo -ne '\e[H\e[2J' fi @@ -244,6 +244,7 @@ if [[ $usepq = 1 ]]; then /usr/bin/pq4ps $@ } fi + [[ "$TERM" = "-linux-" ]] && TERM="linux" $0 ${wrap:+-W$wrap} $(q "$*") exit fi |