changeset 16640:2719a1f55cd8

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 19aaaf6ee13e
children 93005a285d67
files 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/src/jdk.internal.le/share/classes/jdk/internal/jline/WindowsTerminal.java	Sat Feb 04 14:04:28 2017 -0500
+++ b/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();