mirror of
https://github.com/janet-lang/janet
synced 2025-01-11 08:00:27 +00:00
Update web client.
This commit is contained in:
parent
df13a8b967
commit
b2146a4c1d
@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
(fiber/new (fn webrepl []
|
(fiber/new (fn webrepl []
|
||||||
(repl (fn get-line [buf p]
|
(repl (fn get-line [buf p]
|
||||||
(def [line] (parser/where p))
|
(def offset (parser/where p))
|
||||||
(def prompt (string "janet:" line ":" (parser/state p) "> "))
|
(def prompt (string "janet:" offset ":" (parser/state p) "> "))
|
||||||
(repl-yield prompt buf)
|
(repl-yield prompt buf)
|
||||||
(yield)
|
(yield)
|
||||||
buf))))
|
buf))))
|
||||||
|
Loading…
Reference in New Issue
Block a user