0.1.8 • Published 10 years ago

opentty v0.1.8

Weekly downloads
3
License
-
Repository
github
Last release
10 years ago

opentty

Get TTY read access

Example

var openTTY = require('opentty');
var restoreTTY = require('restoretty');

var tty = openTTY();

// quit on Q pressed
tty.on('data', function (d) {
    for (var i = 0; i < d.length; d++) {
        if (d[i] === 0x71) {
            restoreTTY();  // turn off raw mode
            return process.exit();
        }
    }
});

Installation

npm install opentty

Contributors

  • Matt Esch

MIT Licenced

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago