2011-01-19 11:08:07 +08:00
|
|
|
|
2010-11-26 11:09:28 +08:00
|
|
|
var binding = process.binding('stdio');
|
|
|
|
|
2011-01-19 11:08:07 +08:00
|
|
|
if (process.platform === 'win32') {
|
|
|
|
exports = module.exports = require('tty_win32');
|
|
|
|
} else {
|
|
|
|
exports = module.exports = require('tty_posix');
|
|
|
|
}
|
2010-11-26 11:09:28 +08:00
|
|
|
|
|
|
|
exports.isatty = binding.isatty;
|
|
|
|
exports.setRawMode = binding.setRawMode;
|
2011-01-11 09:25:48 +08:00
|
|
|
exports.getWindowSize = binding.getWindowSize;
|
|
|
|
exports.setWindowSize = binding.setWindowSize;
|