8173653: jshell tool: ctrl-C when in external editor aborts jshell -- history lost
Summary: Adding ability for WindowsTerminal subclasses to get and set console mode.
Reviewed-by: rfield
--- a/jdk/src/jdk.internal.le/share/classes/jdk/internal/jline/WindowsTerminal.java Sat Feb 04 14:04:28 2017 -0500
+++ b/jdk/src/jdk.internal.le/share/classes/jdk/internal/jline/WindowsTerminal.java Mon Feb 06 11:07:09 2017 +0100
@@ -314,9 +314,9 @@
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();