From 7f5fc135cf005a3275e6a648f4f665429193e122 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 24 Jul 2012 18:03:57 +0200 Subject: fix for ponyquotes in tty --- ponysay | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ponysay b/ponysay index 1afb742..b5d823c 100755 --- a/ponysay +++ b/ponysay @@ -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 -- cgit