about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2020-06-04 23:51:28 -0500
committerCase Duckworth2020-06-04 23:51:28 -0500
commit7ff7a64c032081ee331e3ae8e23e2c61b044f53d (patch)
tree54705cbd812b33d5d6b302f47015d2ee5c0592f6
parentAdd gopher support; clean up (diff)
downloadbollux-7ff7a64c032081ee331e3ae8e23e2c61b044f53d.tar.gz
bollux-7ff7a64c032081ee331e3ae8e23e2c61b044f53d.zip
Add gophertypes 7 and hopefully others (download)
-rwxr-xr-xbollux9
1 files 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() {
454 die 203 "GOPHER: failed" 454 die 203 "GOPHER: failed"
455 ;; 455 ;;
456 7) # search 456 7) # search
457 die 207 "Not implemented" 457 if [[ "$url" =~ $'\t' ]]; then
458 run gopher_convert | run display text/gemini
459 else
460 run prompt GopherSearch
461 run blastoff "$url $REPLY"
462 fi
458 ;; 463 ;;
459 *) # something else 464 *) # something else
460 die "$((200 + ${type:-0}))" "Not implemented" 465 run download "$url"
461 ;; 466 ;;
462 esac 467 esac
463} 468}