Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit e8646d8

Browse files
committed
fix: reuse columns value from process.stdout
1 parent b18f6e1 commit e8646d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/ipfs/src/cli/utils.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ print.error = (msg, newline) => {
5555

5656
// used by ipfs.add to interrupt the progress bar
5757
print.isTTY = process.stdout.isTTY
58+
print.columns = process.stdout.columns
5859

5960
const createProgressBar = (totalBytes, output) => {
6061
const total = byteman(totalBytes, 2, 'MB')

0 commit comments

Comments
 (0)