File: D:/HostingSpaces/SBogers10/shop.komma.nl/node_modules/@oclif/plugin-help/lib/screen.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function termwidth(stream) {
if (!stream.isTTY) {
return 80;
}
const width = stream.getWindowSize()[0];
if (width < 1) {
return 80;
}
if (width < 40) {
return 40;
}
return width;
}
const columns = parseInt(process.env.COLUMNS, 10) || global.columns;
exports.stdtermwidth = columns || termwidth(process.stdout);
exports.errtermwidth = columns || termwidth(process.stderr);