changeset 43540:3b6ae4a56de2

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
author jlahoda
date Mon, 06 Feb 2017 11:07:09 +0100
parents b7c4265f40e7
children 9aeb1de77a63
files jdk/src/jdk.internal.le/share/classes/jdk/internal/jline/WindowsTerminal.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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();