diff options
author | Mattias Andrée <maandree@operamail.com> | 2012-07-05 09:17:43 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2012-07-05 09:17:43 +0200 |
commit | 348c0084a892b6967249e26a40f529301f7172e4 (patch) | |
tree | ffe0d658c578481f48b8bdcd6c65a2e1cb6df2e4 /ponysay | |
parent | 4a39ef423041bee3faafc99ee60bf0dbb1229868 (diff) | |
download | ponysay-348c0084a892b6967249e26a40f529301f7172e4.tar.gz ponysay-348c0084a892b6967249e26a40f529301f7172e4.tar.bz2 ponysay-348c0084a892b6967249e26a40f529301f7172e4.zip |
environment variable PONYSAY_TRUNCATE_HEIGHT
Diffstat (limited to 'ponysay')
-rwxr-xr-x | ponysay | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |