Skip to content

Commit

Permalink
fix: change default fd
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Oct 21, 2024
1 parent 6c554cf commit c9a5f70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ class Output {
this.stream =
(process.platform === 'win32' && process.env.npm_lifecycle_script === 'wireit') || process.env.NODE_ENV === 'test'
? process.stdout
: new Stream(process.env.OCLIF_TABLE_FD ? Number(process.env.OCLIF_TABLE_FD) : process.stdout.fd)
: new Stream(process.env.OCLIF_TABLE_FD ? Number(process.env.OCLIF_TABLE_FD) : 0)
}

public maybePrintLastFrame() {
Expand Down

0 comments on commit c9a5f70

Please sign in to comment.