8173653: jshell tool: ctrl-C when in external editor aborts jshell -- history lost
Adding ability for WindowsTerminal subclasses to get and set console mode. Reviewed-by: rfield
This commit is contained in:
parent
5f5028bec0
commit
996177e4f0
@ -314,9 +314,9 @@ public class WindowsTerminal
|
||||
|
||||
private static native void initIDs();
|
||||
|
||||
private native int getConsoleMode();
|
||||
protected native int getConsoleMode();
|
||||
|
||||
private native void setConsoleMode(int mode);
|
||||
protected native void setConsoleMode(int mode);
|
||||
|
||||
private byte[] readConsoleInput() {
|
||||
KEY_EVENT_RECORD keyEvent = readKeyEvent();
|
||||
|
Loading…
Reference in New Issue
Block a user