Browse Source

docs: tty: stdin must be initialized before calling setRawMode

v0.7.4-release
Zachary Scott 13 years ago
committed by Ben Noordhuis
parent
commit
e35ce7baa1
  1. 2
      doc/api/tty.markdown

2
doc/api/tty.markdown

@ -5,8 +5,8 @@ Use `require('tty')` to access this module.
Example:
var tty = require('tty');
tty.setRawMode(true);
process.stdin.resume();
tty.setRawMode(true);
process.stdin.on('keypress', function(char, key) {
if (key && key.ctrl && key.name == 'c') {
console.log('graceful exit');

Loading…
Cancel
Save