Permalink
Browse files

Add ">" prompt for readline interface.

  • Loading branch information...
1 parent db82f55 commit 1d1fcba3a97440873c41724a576a7a1b9a1afe70 @josher19 committed Apr 23, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 npm-search-line.js
View
@@ -56,9 +56,11 @@ function run(line) {
sys.puts('Search for npm packages. Tab to autocomplete.')
rl = readline.createInterface(process.stdin, process.stdout, completer)
+rl.prompt();
rl.on('line', function(cmd) {
run(cmd.trim());
+ rl.prompt();
}).on('close', function() {
// only gets triggered by ^C or ^D
sys.puts(colorify('[goodbye]!', 'red'));

0 comments on commit 1d1fcba

Please sign in to comment.