From 42eb5a6898bed3c66dd07afbdb08d281f10c1579 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 16 Sep 2010 20:50:56 -0700 Subject: [PATCH] Simplify REPL --- lib/repl.js | 2 +- src/node.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/repl.js b/lib/repl.js index e8e6c06e09..6f9c01901d 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -48,7 +48,7 @@ function REPLServer(prompt, stream) { self.buffered_cmd = ''; self.stream = stream || process.openStdin(); - self.prompt = prompt || "node> "; + self.prompt = prompt || "> "; var rli = self.rli = rl.createInterface(self.stream, function (text) { return self.complete(text); diff --git a/src/node.js b/src/node.js index 4b463e023b..179324bf66 100644 --- a/src/node.js +++ b/src/node.js @@ -741,9 +741,7 @@ if (process.argv[1]) { }); } else { // No arguments, run the repl - var repl = requireNative('repl'); - console.log("Type '.help' for options."); - repl.start(); + requireNative('repl').start(); } // All our arguments are loaded. We've evaluated all of the scripts. We