aboutsummaryrefslogtreecommitdiff
path: root/ponysay
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-07-05 09:17:43 +0200
committerMattias Andrée <maandree@operamail.com>2012-07-05 09:17:43 +0200
commit348c0084a892b6967249e26a40f529301f7172e4 (patch)
treeffe0d658c578481f48b8bdcd6c65a2e1cb6df2e4 /ponysay
parent4a39ef423041bee3faafc99ee60bf0dbb1229868 (diff)
downloadponysay-348c0084a892b6967249e26a40f529301f7172e4.tar.gz
ponysay-348c0084a892b6967249e26a40f529301f7172e4.tar.bz2
ponysay-348c0084a892b6967249e26a40f529301f7172e4.zip
environment variable PONYSAY_TRUNCATE_HEIGHT
Diffstat (limited to 'ponysay')
-rwxr-xr-xponysay2
1 files changed, 1 insertions, 1 deletions
diff --git a/ponysay b/ponysay
index 9b5b2af..46c288e 100755
--- a/ponysay
+++ b/ponysay
@@ -81,7 +81,7 @@ say() {
head --lines=$(( $(stty size <&2 | cut -d ' ' -f 1) - $PONYSAY_SHELL_LINES ))
}
- if [ "$TERM" = "linux" ]; then
+ if [ "$TERM" = "linux" ] || [ "$PONYSAY_TRUNCATE_HEIGHT" = 'yes' ] || [ "$PONYSAY_TRUNCATE_HEIGHT" = 'y' ] || [ "$PONYSAY_TRUNCATE_HEIGHT" = '1' ]; then
if [ "$PONYSAY_BOTTOM" = 'yes' ] || [ "$PONYSAY_BOTTOM" = 'y' ] || [ "$PONYSAY_BOTTOM" = '1' ]; then
exec "$cmd" -f "$pony" "${wrap:+-W$wrap}" | wtrunc | tac | htrunc | tac
else