From d5e4496e95655916083bab3ef48dedad2b3aa3da Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Wed, 14 Mar 2018 10:54:29 -0400 Subject: [PATCH] Change repl prompt. --- src/compiler/boot.dst | 2 +- src/mainclient/line.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/compiler/boot.dst b/src/compiler/boot.dst index a2050230..5d9ee77a 100644 --- a/src/compiler/boot.dst +++ b/src/compiler/boot.dst @@ -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] diff --git a/src/mainclient/line.c b/src/mainclient/line.c index 470123f3..b9ad97dc 100644 --- a/src/mainclient/line.c +++ b/src/mainclient/line.c @@ -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;