Skip to content

Commit

Permalink
repl: To exit, press ^C again or type .exit.
Browse files Browse the repository at this point in the history
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.

PR-URL: #3368
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
hemanth authored and jasnell committed Dec 23, 2015
1 parent 749f675 commit 4d91c50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,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;
Expand Down

0 comments on commit 4d91c50

Please sign in to comment.