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)) [(and (>= status 10) (<= status 19))
(displayln "input requested") (displayln "input requested")
(display "? ") (display "? ")
(flush-output)
(get-document (get-document
(struct-copy (struct-copy

View File

@@ -9,6 +9,8 @@
(define (repl) (define (repl)
(display "G-300 > ") (display "G-300 > ")
(flush-output)
(with-handlers (with-handlers
([(or/c exn:fail:user? ([(or/c exn:fail:user?
;; todo: catch these errors separately and reformat them ;; todo: catch these errors separately and reformat them
@@ -46,7 +48,20 @@
(list _ "b" _)) (list _ "b" _))
(send client back-cmd)] (send client back-cmd)]
[(or (list _ "quit" _)
(list _ "q" _ ))
(exit)]
[else [else
(displayln "no such command")])) (displayln "no such command")]))
(repl)) (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)