From d138c9c136d5386067c106e4240a18cd6439a841 Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Mon, 31 Jul 2023 16:36:02 +0200 Subject: [PATCH] Fix shell output going to stderr rather than stdout (fixes #845) --- terminal/src/main/java/org/jline/terminal/TerminalBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminal/src/main/java/org/jline/terminal/TerminalBuilder.java b/terminal/src/main/java/org/jline/terminal/TerminalBuilder.java index f587c9cc0..dc57b1802 100644 --- a/terminal/src/main/java/org/jline/terminal/TerminalBuilder.java +++ b/terminal/src/main/java/org/jline/terminal/TerminalBuilder.java @@ -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); }