repo: golang action: commit revision: path_from: revision_from: 11a65ceab8973802da7dc3fa80771e1020b879a6: path_to: revision_to:
commit 11a65ceab8973802da7dc3fa80771e1020b879a6 Author: epochDate: Thu Mar 12 02:25:56 2020 -0500 changed the image stuff to say just inlined data since you /could/ inline text files too if you wanted. added gifs to the inlined types diff --git a/gophermap2terminal b/gophermap2terminal
--- a/gophermap2terminal
+++ b/gophermap2terminal
@@ -9,11 +9,11 @@ tr -d '\r' | sed 's/^\(.\)/\1\t/g' \
fi
if [ "$type" = i ];then
printf "[i] %s\n" "$desc"
- elif [ "$type" = p ];then
+ elif [ "$type" = p -o "$type" = g ];then ### things in here are any things to be inlined. not only just images.
### need to download the image and inline it with img2sixel
- printf "[p] -----START OF A SIXEL IMAGE-----\n"
+ printf "[p] -----START OF INLINED DATA-----\n"
gopher "$domain" "$port" "/$type$path" 2>/dev/null
- printf "[p] -----END OF A SIXEL IMAGE-----\n"
+ printf "[p] -----END OF INLINED DATA-----\n"
### inside that script it'll notice it is a png, then instead of xli it, it'll img2sixel?
else
if grep '^URL:' <<< $path 2>&1 >/dev/null;then
@@ -23,3 +23,4 @@ tr -d '\r' | sed 's/^\(.\)/\1\t/g' \
fi
fi
done
+### we don't have a way of knowing what file we're reading... pass as argument instead of stdin? :/
-----END OF PAGE-----