Skip to content

Commit

Permalink
Merge pull request #27 from 2A5F/master
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxingZhang authored Jan 26, 2024
2 parents 2b42daa + 3b99b97 commit 86957cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export default class ProgressBar {
}

private get ttyColumns(): number {
if (!Deno.isatty(Deno.stdout.rid)) return 100;
if (!Deno.stdout.isTerminal()) return 100;
return Deno.consoleSize().columns;
}

Expand Down
2 changes: 1 addition & 1 deletion multi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export class MultiProgressBar {
}

private get ttyColumns(): number {
if (!Deno.isatty(Deno.stdout.rid)) return 100;
if (!Deno.stdout.isTerminal()) return 100;
return Deno.consoleSize().columns;
}

Expand Down

0 comments on commit 86957cc

Please sign in to comment.