1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-19 07:04:48 +00:00

Fix web versinon repl colors.

This commit is contained in:
Calvin Rose 2019-04-16 16:06:52 -04:00
parent 208eb7520a
commit ddaa5e34e6

View File

@ -1,9 +1,9 @@
# Copyright 2017-2019 (C) Calvin Rose # Copyright 2017-2019 (C) Calvin Rose
(print (string "Janet " janet/version "-" janet/build " Copyright (C) 2017-2019 Calvin Rose")) (print (string "Janet " janet/version "-" janet/build " Copyright (C) 2017-2019 Calvin Rose"))
(setdyn :pretty-format "%.20P")
(fiber/new (fn webrepl [] (fiber/new (fn webrepl []
(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) "> ")) (def prompt (string "janet:" offset ":" (parser/state p) "> "))