diff --git a/terminal-ffm/src/main/java/org/jline/terminal/impl/ffm/NativeWinSysTerminal.java b/terminal-ffm/src/main/java/org/jline/terminal/impl/ffm/NativeWinSysTerminal.java index dc100b275..471093fc4 100644 --- a/terminal-ffm/src/main/java/org/jline/terminal/impl/ffm/NativeWinSysTerminal.java +++ b/terminal-ffm/src/main/java/org/jline/terminal/impl/ffm/NativeWinSysTerminal.java @@ -80,7 +80,7 @@ public static NativeWinSysTerminal createTerminal( type = type != null ? type : OSUtils.IS_CONEMU ? TYPE_WINDOWS_CONEMU : TYPE_WINDOWS; writer = new NativeWinConsoleWriter(); } else { - int m = inMode.get(java.lang.foreign.ValueLayout.JAVA_INT, 0); + int m = outMode.get(java.lang.foreign.ValueLayout.JAVA_INT, 0); if (enableVtp(console, m)) { type = type != null ? type : TYPE_WINDOWS_VTP; writer = new NativeWinConsoleWriter();