0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 23:16:30 +01:00
nodejs/lib/tty.js
2011-01-18 23:22:38 -08:00

14 lines
360 B
JavaScript

var binding = process.binding('stdio');
if (process.platform === 'win32') {
exports = module.exports = require('tty_win32');
} else {
exports = module.exports = require('tty_posix');
}
exports.isatty = binding.isatty;
exports.setRawMode = binding.setRawMode;
exports.getWindowSize = binding.getWindowSize;
exports.setWindowSize = binding.setWindowSize;