ansiweather

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

commit 694c961b367991e381830a5d0c3382eec5709097
parent c8d53db0bb2255a49030609b25a6462872e4551a
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Thu,  6 Aug 2015 23:13:23 +0200

Using printf binary instead of shell built in to display output + minor refactor

Diffstat:
Mansiweather | 10+++-------
1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/ansiweather b/ansiweather @@ -351,10 +351,6 @@ then i=$(($i + 1)) done - - output="$output\033[0m\n" - - printf "$output" else if [ $symbols = true ] then @@ -366,8 +362,8 @@ else then output="$output $dashes$text $sunrise_text $delimiter$data $sunrise_time $dashes$text $sunset_text $delimiter$data $sunset_time" fi +fi - output="$output \033[0m\n" +output="$output\033[0m\n" - printf "$output" -fi +/usr/bin/printf "$output"