mirror of
https://github.com/nodejs/node.git
synced 2024-11-29 23:16:30 +01:00
14 lines
360 B
JavaScript
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;
|