8173653: jshell tool: ctrl-C when in external editor aborts jshell -- history lost
authorjlahoda
Mon, 06 Feb 2017 11:07:09 +0100
changeset 43540 3b6ae4a56de2
parent 43539 b7c4265f40e7
child 43541 9aeb1de77a63
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
jdk/src/jdk.internal.le/share/classes/jdk/internal/jline/WindowsTerminal.java
--- 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();