We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea906d8 commit ea0039aCopy full SHA for ea0039a
bin/opencollective.js
@@ -13,7 +13,7 @@ function emoji(emoji) {
13
}
14
15
function print(str = "", color = "dim") {
16
- const terminalCols = process.platform === "win32" ? 80 : parseInt(child_process.execSync("tput cols").toString());
+ const terminalCols = process.platform === "win32" ? 80 : parseInt(child_process.execSync("tty -s && tput cols").toString());
17
// eslint-disable-next-line no-control-regex
18
const ansiEscapeSeq = /\u001b\[[0-9]{1,2}m/g;
19
const strLength = str.replace(ansiEscapeSeq, "").length;
0 commit comments