mirror of
https://github.com/janet-lang/janet
synced 2024-12-26 08:20:27 +00:00
Fix webclient.
This commit is contained in:
parent
7fd0748c19
commit
8dd322c0be
@ -1,6 +1,8 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
## 1.4.0 - 2019-10-14
|
## 1.4.0 - 2019-10-14
|
||||||
- Add `quit` function to exit from a repl, but not always exit the entire
|
- Add `quit` function to exit from a repl, but not always exit the entire
|
||||||
application.
|
application.
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
(fiber/new (fn webrepl []
|
(fiber/new (fn webrepl []
|
||||||
(setdyn :pretty-format "%.20P")
|
(setdyn :pretty-format "%.20P")
|
||||||
(repl (fn get-line [buf p]
|
(repl (fn get-line [buf p]
|
||||||
(def offset (parser/where p))
|
(def [offset] (parser/where p))
|
||||||
(def prompt (string "janet:" offset ":" (parser/state p :delimiters) "> "))
|
(def prompt (string "janet:" offset ":" (parser/state p :delimiters) "> "))
|
||||||
(repl-yield prompt buf)
|
(repl-yield prompt buf)
|
||||||
(yield)
|
(yield)
|
||||||
|
Loading…
Reference in New Issue
Block a user