Skip to content

Commit badc32d

Browse files
committedMar 11, 2019
feat(opencollective prompt): set terminal cols to 80
1 parent ea0039a commit badc32d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎bin/opencollective.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
const child_process = require("child_process");
21
const chalk = require("chalk");
32
const fs = require("fs");
43
const path = require("path");
@@ -13,7 +12,7 @@ function emoji(emoji) {
1312
}
1413

1514
function print(str = "", color = "dim") {
16-
const terminalCols = process.platform === "win32" ? 80 : parseInt(child_process.execSync("tty -s && tput cols").toString());
15+
const terminalCols = 80;
1716
// eslint-disable-next-line no-control-regex
1817
const ansiEscapeSeq = /\u001b\[[0-9]{1,2}m/g;
1918
const strLength = str.replace(ansiEscapeSeq, "").length;

0 commit comments

Comments
 (0)
Please sign in to comment.