[Snek] [PATCH 2/6] Fix extra newline after prompt
Mikhail Gusarov
dottedmag at dottedmag.net
Fri Feb 21 15:10:16 PST 2020
---
ports/ev3/snek-main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ports/ev3/snek-main.c b/ports/ev3/snek-main.c
index d4b6c63..2bd3eb3 100644
--- a/ports/ev3/snek-main.c
+++ b/ports/ev3/snek-main.c
@@ -42,7 +42,7 @@ snek_getc_interactive(void)
char *prompt = "> ";
if (snek_parse_middle)
prompt = "+ ";
- puts(prompt);
+ fputs(prompt, stdout);
line = fgets(line_base, 4096, stdin);
if (!line)
return EOF;
--
2.24.0
More information about the Snek
mailing list