From 6f497f18992975cd0068b3568d9fc52ba71bdedf Mon Sep 17 00:00:00 2001 From: "Hemanth.HM" Date: Sat, 7 Nov 2015 13:48:40 +0530 Subject: [PATCH] repl: To exit, press ^C again or type .exit. When the user hits `^C` in the REPL show more info about `.exit`. The idea was to give more info to the user when they hit ^C. Current version just displays `(^C again to quit)` and most of the users are not aware of the `.exit` command that would Exit the repl. --- lib/repl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/repl.js b/lib/repl.js index 81afd27a4dbd00..6fbe7dacf3cbcb 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -271,7 +271,7 @@ function REPLServer(prompt, sawSIGINT = false; return; } - self.output.write('(^C again to quit)\n'); + self.output.write('(To exit, press ^C again or type .exit)\n'); sawSIGINT = true; } else { sawSIGINT = false;