klisp

an open source interpreter for the Kernel Programming Language.
git clone http://git.hanabi.in/repos/klisp.git
Log | Files | Refs | README

commit 2e789a4968487495a200fab0ef4c25c34e315475
parent 76396dbc2626f86b7d1305ff1c3b0bcd18c3ec31
Author: Andres Navarro <canavarro82@gmail.com>
Date:   Fri, 21 Oct 2011 14:11:07 -0300

Added a newline print to stdout if repl is exited with Ctrl-D (EOF). This is visually cleaner.

Diffstat:
Msrc/krepl.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/krepl.c b/src/krepl.c @@ -68,6 +68,8 @@ void do_repl_eval(klisp_State *K, TValue *xparams, TValue obj) if (ttiseof(obj)) { /* read [EOF], should terminate the repl */ /* this will in turn call main_cont */ + /* print a newline to allow the shell a fresh line */ + printf("\n"); kset_cc(K, K->root_cont); kapply_cc(K, KINERT); } else {