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 {
|
try {
|
||||||
Terminal terminal = TerminalBuilder.builder().encoding(charset)
|
Terminal terminal = TerminalBuilder.builder().encoding(charset)
|
||||||
.exec(false)
|
.exec(false)
|
||||||
|
.nativeSignals(false)
|
||||||
.systemOutput(SystemOutput.SysOut)
|
.systemOutput(SystemOutput.SysOut)
|
||||||
.build();
|
.build();
|
||||||
newDelegate = new JdkConsoleImpl(terminal);
|
newDelegate = new JdkConsoleImpl(terminal);
|
||||||
|
@ -158,7 +158,7 @@ class ConsoleIOContext extends IOContext {
|
|||||||
terminal = TerminalBuilder.builder().inputStreamWrapper(in -> {
|
terminal = TerminalBuilder.builder().inputStreamWrapper(in -> {
|
||||||
input.setInputStream(in);
|
input.setInputStream(in);
|
||||||
return nonBlockingInput;
|
return nonBlockingInput;
|
||||||
}).build();
|
}).nativeSignals(false).build();
|
||||||
useComplexDeprecationHighlight = !OSUtils.IS_WINDOWS;
|
useComplexDeprecationHighlight = !OSUtils.IS_WINDOWS;
|
||||||
}
|
}
|
||||||
this.allowIncompleteInputs = allowIncompleteInputs;
|
this.allowIncompleteInputs = allowIncompleteInputs;
|
||||||
|
Loading…
Reference in New Issue
Block a user