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 42407cb commit 70d640eCopy full SHA for 70d640e
1 file changed
lib/node/nodeConsole.js
@@ -39,10 +39,8 @@ const clearStatusMessage = () => {
39
40
const writeStatusMessage = () => {
41
if (!currentStatusMessage) return;
42
- const l = process.stderr.columns;
43
- const args = l
44
- ? truncateArgs(currentStatusMessage, l - 1)
45
- : currentStatusMessage;
+ const l = process.stderr.columns || 40;
+ const args = truncateArgs(currentStatusMessage, l - 1);
46
const str = args.join(" ");
47
const coloredStr = `\u001b[1m${str}\u001b[39m\u001b[22m`;
48
process.stderr.write(`\x1b[2K\r${coloredStr}`);
0 commit comments