Set timeout origin/gopher
authorCase Duckworth <acdw@acdw.net>
Sun, 7 Jun 2020 18:34:59 +0000 (13:34 -0500)
committerCase Duckworth <acdw@acdw.net>
Sun, 7 Jun 2020 18:34:59 +0000 (13:34 -0500)
bollux

diff --git a/bollux b/bollux
index 1eb120c..1aaa70f 100755 (executable)
--- a/bollux
+++ b/bollux
@@ -349,7 +349,7 @@ gemini_response() {
        url="$1"
 
        # we need a loop here so it waits for the first line
-       while read -t "3" -r code meta ||
+       while read -t "$BOLLUX_TIMEOUT" -r code meta ||
                { (($? > 128)) && die 99 "Timeout."; }; do
                break
        done
@@ -457,7 +457,7 @@ gopher_response() {
                if [[ "$url" =~ $'\t' ]]; then
                        run gopher_convert | run display text/gemini
                else
-                       run prompt GopherSearch
+                       run prompt 'SEARCH'
                        run blastoff "$url      $REPLY"
                fi
                ;;