prepare for use over the radio

This commit is contained in:
2025-09-08 13:40:44 -07:00
parent 4323f759fa
commit 0dc93d369e
2 changed files with 16 additions and 0 deletions

View File

@@ -190,6 +190,7 @@
[(and (>= status 10) (<= status 19))
(displayln "input requested")
(display "? ")
(flush-output)
(get-document
(struct-copy

View File

@@ -9,6 +9,8 @@
(define (repl)
(display "G-300 > ")
(flush-output)
(with-handlers
([(or/c exn:fail:user?
;; todo: catch these errors separately and reformat them
@@ -46,7 +48,20 @@
(list _ "b" _))
(send client back-cmd)]
[(or (list _ "quit" _)
(list _ "q" _ ))
(exit)]
[else
(displayln "no such command")]))
(repl))
(displayln
(string-append "welcome to gem300, a gemini client.\n"
"to learn more, type:\n"
"'go w6vvn.flounder.online/gem300/tutorial.gmi'"))
(flush-output)
(repl)