mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-25 05:47:59 +01:00
much better
This commit is contained in:
parent
e3d582901b
commit
3ed997195b
1 changed files with 5 additions and 2 deletions
7
ponysay
7
ponysay
|
@ -50,10 +50,13 @@ say() {
|
||||||
export PERL_UNICODE=S
|
export PERL_UNICODE=S
|
||||||
|
|
||||||
if [ "$TERM" = "linux" ]; then
|
if [ "$TERM" = "linux" ]; then
|
||||||
echo -ne '\ec'
|
echo -ne '\ec'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec "$cmd" -f "$pony" "${wrap:+-W$wrap}" | (exec ponysaytruncater `tput cols || echo 0` 2>/dev/null || ./ponysaytruncater `tput cols || echo 0` 2>/dev/null || cat)
|
exec "$cmd" -f "$pony" "${wrap:+-W$wrap}" | (ponysaytruncater `tput cols || echo 0` 2>/dev/null ||
|
||||||
|
${HOME}/.local/bin/ponysaytruncater `tput cols || echo 0` 2>/dev/null ||
|
||||||
|
./ponysaytruncater `tput cols || echo 0` 2>/dev/null ||
|
||||||
|
cat)
|
||||||
}
|
}
|
||||||
|
|
||||||
while getopts f:W:lhv OPT
|
while getopts f:W:lhv OPT
|
||||||
|
|
Loading…
Reference in a new issue