Skip to content

Commit

Permalink
Fix shell output going to stderr rather than stdout (fixes #845)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Aug 1, 2023
1 parent 3c93ea7 commit d138c9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ private Terminal doBuild() throws IOException {
color ? Terminal.TYPE_DUMB_COLOR : Terminal.TYPE_DUMB,
new FileInputStream(FileDescriptor.in),
new FileOutputStream(
console == TerminalProvider.Stream.Output ? FileDescriptor.out : FileDescriptor.err),
console == TerminalProvider.Stream.Error ? FileDescriptor.err : FileDescriptor.out),
encoding,
signalHandler);
}
Expand Down

0 comments on commit d138c9c

Please sign in to comment.