X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=gopher.sh;h=c026b9c9839226c14ce2a7f7f706b40c2ec10a1f;hb=5afd6400c9976e720f90bf8860f7b9e877ce4282;hp=e433ac0a620c093acc9b39a423efaf437c669803;hpb=538b88d61a557a1fb5cb3da452c19241805850bd;p=gofetch.git diff --git a/gopher.sh b/gopher.sh index e433ac0..c026b9c 100755 --- a/gopher.sh +++ b/gopher.sh @@ -47,7 +47,7 @@ if [ "$LINK_COLOR" != "-" ]; then EL="`tput init`"; fi -PREFIX="[0-9h]" +PREFIX="[0-9hIg]" # $0 [FILE] # Display a gopher menu for the given resource @@ -142,21 +142,21 @@ download) echo "" | less ;; g|I) - if convert -h >/dev/null 2>&1; then - if ImageUtils.sh --help >/dev/null 2>&1; then - ImageUtils.sh --mode=DITHERING \ - --width=74 "$tmp" | less - elif jp2a -h >/dev/null 2>&1; then + if img2aa --help >/dev/null 2>&1; then + img2aa --mode=DITHERING \ + --width=74 "$tmp" | less + elif jp2a -h >/dev/null 2>&1; then + if convert -h >/dev/null 2>&1; then convert "$tmp" "$tmp.jpg" jp2a --border --chars=" .-+=o8#"\ --width=74 "$tmp.jpg" | less else - echo "required program not found to view images:" \ - jp2a or ImageUtils.sh | less + echo "required program not found to view images: convert" \ + | less fi else - echo "required program not found to view images: convert" \ - | less + echo "required program not found to view images:" \ + jp2a or img2aa | less fi ;; *)