Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

make typer.js example more fun

  • Loading branch information...
commit 5ea514dd49a1ac5f652357b9b88010d292c1d825 1 parent 6fdbbf4
@isaacs isaacs authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/typer.js
View
4 examples/typer.js
@@ -10,8 +10,8 @@ rst.on('end', function() {
process.stdin.setRawMode(true);
process.stdin.on('data', function() {
- var c = rst.read(1);
- if (!c) return;
+ var c = rst.read(3);
+ if (!c) return setTimeout(process.exit, 500)
process.stdout.write(c);
});
process.stdin.resume();
Please sign in to comment.
Something went wrong with that request. Please try again.