1
0
mirror of https://github.com/janet-lang/janet synced 2025-04-06 07:17:16 +00:00

Change repl prompt.

This commit is contained in:
Calvin Rose 2018-03-14 10:54:29 -04:00
parent 7ec2efcf6d
commit d5e4496e95
2 changed files with 4 additions and 4 deletions

View File

@ -355,7 +355,7 @@ onvalue."
(defn repl [getchunk]
(def newenv (make-env))
(defn chunks [buf]
(file-write stdout ">> ")
(file-write stdout "> ")
(file-flush stdout)
(file-read stdin :line buf))
(defn onvalue [x]

View File

@ -55,7 +55,7 @@ void dst_line_deinit() {
}
void dst_line_get(DstBuffer *buffer) {
fputs(">> ", stdout);
fputs("> ", stdout);
simpleline(buffer);
}
@ -85,8 +85,8 @@ https://github.com/antirez/linenoise/blob/master/linenoise.c
#define DST_LINE_MAX 1024
#define DST_HISTORY_MAX 100
static int israwmode = 0;
static const char *prompt = ">> ";
static int plen = 3;
static const char *prompt = "> ";
static int plen = 2;
static char buf[DST_LINE_MAX];
static int len = 0;
static int pos = 0;