repo: golang
action: commit
revision: 
path_from: 
revision_from: 11a65ceab8973802da7dc3fa80771e1020b879a6:
path_to: 
revision_to: 
git.thebackupbox.net
golang
git clone git://git.thebackupbox.net/golang
commit 11a65ceab8973802da7dc3fa80771e1020b879a6
Author: epoch 
Date:   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
index 9ef960fe832189fd15085ad499dc6993db1b73d4..
index ..42044d8c723a8f2cce3f5d3e5c3e557433ba511d 100755
--- 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-----