1
0
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:
Calvin Rose 2018-12-13 21:36:19 -05:00
parent df13a8b967
commit b2146a4c1d

View File

@ -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))))