From 7ff7a64c032081ee331e3ae8e23e2c61b044f53d Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Thu, 4 Jun 2020 23:51:28 -0500 Subject: Add gophertypes 7 and hopefully others (download) --- bollux | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bollux b/bollux index 9f5e2bb..1eb120c 100755 --- a/bollux +++ b/bollux @@ -454,10 +454,15 @@ gopher_response() { die 203 "GOPHER: failed" ;; 7) # search - die 207 "Not implemented" + if [[ "$url" =~ $'\t' ]]; then + run gopher_convert | run display text/gemini + else + run prompt GopherSearch + run blastoff "$url $REPLY" + fi ;; *) # something else - die "$((200 + ${type:-0}))" "Not implemented" + run download "$url" ;; esac } -- cgit 1.4.1-21-gabe81