igor_chubin
Joined 9 years ago
Karma
49
Submissions
32
Member since
May 25
Joined 9 years ago
You can try to run it with any command that has ANSI output, and you will see it.
As a simple alternative, you write your own 'watch' like this:
while true; do curl -s wttr.in; sleep 60; clear; done
curl --user-agant "" wttr.in?A
for that.The `A` option enforces ANSI output (curl wttr.in/:help for more)
and the curlable directory is almost there
As an interim solution, you can use this:
curl https://raw.githubusercontent.com/chubin/awesome-console-services/master/README.md curl() { [ -t 1 ] && curl "$@" | sanitize || curl "$@"; }w() { ( IFS=+; curl wttr.in/"$*";); }
curl ga.wttr.in/limerick
and for the white background:
curl wttr.in/?I
Anyway, one can write a small filter, to cut any suspicious sequences from the output off, and add some wrapper like that to your bashrc:
curl() { [ -t 1 ] && curl "$@" | sanitize || curl "$@"; }