8332921: Ctrl+C does not call shutdown hooks after JLine upgrade
Reviewed-by: asotona, vromero
This commit is contained in:
parent
30894126a4
commit
b3f540d354
@ -164,6 +164,7 @@ public class JdkConsoleProviderImpl implements JdkConsoleProvider {
|
||||
try {
|
||||
Terminal terminal = TerminalBuilder.builder().encoding(charset)
|
||||
.exec(false)
|
||||
.nativeSignals(false)
|
||||
.systemOutput(SystemOutput.SysOut)
|
||||
.build();
|
||||
newDelegate = new JdkConsoleImpl(terminal);
|
||||
|
@ -158,7 +158,7 @@ class ConsoleIOContext extends IOContext {
|
||||
terminal = TerminalBuilder.builder().inputStreamWrapper(in -> {
|
||||
input.setInputStream(in);
|
||||
return nonBlockingInput;
|
||||
}).build();
|
||||
}).nativeSignals(false).build();
|
||||
useComplexDeprecationHighlight = !OSUtils.IS_WINDOWS;
|
||||
}
|
||||
this.allowIncompleteInputs = allowIncompleteInputs;
|
||||
|
Loading…
Reference in New Issue
Block a user