Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
process.on('SIGWINCH', function(){
size = tty.getWindowSize();
canvas.width = size[1];
canvas.height = size[0];
});
Parser.prototype.width = function() {
if (process.stdout.isTTY) {
return process.stdout.columns || require('tty').getWindowSize(process.stdout.fd)[1];
} else {
return 80;
}
}
var getCols = function() {
return tty.getWindowSize(process.stdin);
};
function initWordWrap(width){
if (!width) {
width = TTY.getWindowSize()[1];
}
wordwrap = WordWrap(4, width);
}