prepare for use over the radio
This commit is contained in:
@@ -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
|
||||||
|
15
gem300.rkt
15
gem300.rkt
@@ -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)
|
||||||
|
Reference in New Issue
Block a user