Skip to content

Commit

Permalink
Upgrade jline 3.24.1
Browse files Browse the repository at this point in the history
- Default TerminalBuilder system outpu to SysOut to restore
  writing to stdout instead of stderr when redirect exists
- Backport #891
- Backport #901
- Fixes #915
- Fixes #912
  • Loading branch information
jvalkeal committed Nov 3, 2023
1 parent 8bab928 commit 1f4eb5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</scm>

<properties>
<jline.version>3.23.0</jline.version>
<jline.version>3.24.1</jline.version>
<antlr-st4.version>4.3.3</antlr-st4.version>
<jimfs.version>1.2</jimfs.version>
</properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import org.jline.reader.Parser;
import org.jline.terminal.Terminal;
import org.jline.terminal.TerminalBuilder;
import org.jline.terminal.TerminalBuilder.SystemOutput;
import org.jline.utils.AttributedString;
import org.jline.utils.AttributedStyle;

Expand All @@ -43,7 +44,7 @@ public class JLineShellAutoConfiguration {
@Bean(destroyMethod = "close")
public Terminal terminal() {
try {
return TerminalBuilder.builder().build();
return TerminalBuilder.builder().systemOutput(SystemOutput.SysOut).build();
}
catch (IOException e) {
throw new BeanCreationException("Could not create Terminal: " + e.getMessage());
Expand Down

0 comments on commit 1f4eb5b

Please sign in to comment.