ansiweather

Weather in terminal, with ANSI colors and Unicode symbols
Log | Files | Refs | README | LICENSE

commit 34663dd0549858cc02b3b4b95931484b23cce501
parent 7820c4a1d24c559dbc98e1baa8d787d520be3807
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Wed,  9 Sep 2015 23:43:03 +0200

Pipe printf output directly to sed to fix issue on NetBSD (Thanks @krytarowski for testing)

Diffstat:
Mansiweather | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/ansiweather b/ansiweather @@ -427,9 +427,7 @@ fi if [ "$ansi" = true ] then - output="$output\033[0m" + /usr/bin/printf "$output\033[0m\n" else - output=$(printf '%s' "$output" | sed "s/$(printf '\033')\[[0-9;]*m//g") + /usr/bin/printf "$output\n" | sed "s/$(printf '\033')\[[0-9;]*m//g" fi - -/usr/bin/printf "$output\n"