public class jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal extends jdk.internal.org.jline.terminal.impl.AbstractWindowsTerminal
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal
super_class: jdk.internal.org.jline.terminal.impl.AbstractWindowsTerminal
{
private static final jdk.internal.org.jline.terminal.impl.jna.win.Pointer consoleIn;
descriptor: Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final jdk.internal.org.jline.terminal.impl.jna.win.Pointer consoleOut;
descriptor: Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private char[] focus;
descriptor: [C
flags: (0x0002) ACC_PRIVATE
private char[] mouse;
descriptor: [C
flags: (0x0002) ACC_PRIVATE
private final jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$INPUT_RECORD[] inputEvents;
descriptor: [Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$INPUT_RECORD;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.internal.org.jline.terminal.impl.jna.win.IntByReference eventsRead;
descriptor: Ljdk/internal/org/jline/terminal/impl/jna/win/IntByReference;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: getstatic jdk.internal.org.jline.terminal.impl.jna.win.Kernel32.INSTANCE:Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32;
bipush -10
invokeinterface jdk.internal.org.jline.terminal.impl.jna.win.Kernel32.GetStdHandle:(I)Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;
putstatic jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.consoleIn:Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;
1: getstatic jdk.internal.org.jline.terminal.impl.jna.win.Kernel32.INSTANCE:Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32;
bipush -11
invokeinterface jdk.internal.org.jline.terminal.impl.jna.win.Kernel32.GetStdHandle:(I)Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;
putstatic jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.consoleOut:Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;
return
LocalVariableTable:
Start End Slot Name Signature
public static jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal createTerminal(java.lang.String, java.lang.String, boolean, java.nio.charset.Charset, int, boolean, jdk.internal.org.jline.terminal.Terminal$SignalHandler, boolean, java.util.function.Function<java.io.InputStream, java.io.InputStream>);
descriptor: (Ljava/lang/String;Ljava/lang/String;ZLjava/nio/charset/Charset;IZLjdk/internal/org/jline/terminal/Terminal$SignalHandler;ZLjava/util/function/Function;)Ljdk/internal/org/jline/terminal/impl/jna/win/JnaWinSysTerminal;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=10, locals=11, args_size=9
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 start local 8 0: iload 2
ifeq 7
1: aload 1
ifnonnull 5
2: getstatic jdk.internal.org.jline.utils.OSUtils.IS_CONEMU:Z
ifeq 3
ldc "windows-conemu"
goto 4
StackMap locals:
StackMap stack:
3: ldc "windows"
StackMap locals:
StackMap stack: java.lang.String
4: astore 1
5: StackMap locals:
StackMap stack:
new jdk.internal.org.jline.terminal.impl.jna.win.JnaWinConsoleWriter
dup
getstatic jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.consoleOut:Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;
invokespecial jdk.internal.org.jline.terminal.impl.jna.win.JnaWinConsoleWriter.<init>:(Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;)V
astore 9
start local 9 6: goto 23
end local 9 7: StackMap locals:
StackMap stack:
new jdk.internal.org.jline.terminal.impl.jna.win.IntByReference
dup
invokespecial jdk.internal.org.jline.terminal.impl.jna.win.IntByReference.<init>:()V
astore 10
start local 10 8: getstatic jdk.internal.org.jline.terminal.impl.jna.win.Kernel32.INSTANCE:Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32;
getstatic jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.consoleOut:Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;
aload 10
invokeinterface jdk.internal.org.jline.terminal.impl.jna.win.Kernel32.GetConsoleMode:(Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;Ljdk/internal/org/jline/terminal/impl/jna/win/IntByReference;)V
9: getstatic jdk.internal.org.jline.terminal.impl.jna.win.Kernel32.INSTANCE:Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32;
getstatic jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.consoleOut:Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;
aload 10
invokevirtual jdk.internal.org.jline.terminal.impl.jna.win.IntByReference.getValue:()I
iconst_4
ior
invokeinterface jdk.internal.org.jline.terminal.impl.jna.win.Kernel32.SetConsoleMode:(Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;I)V
10: aload 1
ifnonnull 12
11: ldc "windows-vtp"
astore 1
12: StackMap locals: java.lang.String java.lang.String int java.nio.charset.Charset int int jdk.internal.org.jline.terminal.Terminal$SignalHandler int java.util.function.Function top jdk.internal.org.jline.terminal.impl.jna.win.IntByReference
StackMap stack:
new jdk.internal.org.jline.terminal.impl.jna.win.JnaWinConsoleWriter
dup
getstatic jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.consoleOut:Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;
invokespecial jdk.internal.org.jline.terminal.impl.jna.win.JnaWinConsoleWriter.<init>:(Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;)V
astore 9
start local 9 13: goto 23
end local 9 StackMap locals:
StackMap stack: jdk.internal.org.jline.terminal.impl.jna.win.LastErrorException
14: pop
15: getstatic jdk.internal.org.jline.utils.OSUtils.IS_CONEMU:Z
ifeq 20
16: aload 1
ifnonnull 18
17: ldc "windows-conemu"
astore 1
18: StackMap locals:
StackMap stack:
new jdk.internal.org.jline.terminal.impl.jna.win.JnaWinConsoleWriter
dup
getstatic jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.consoleOut:Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;
invokespecial jdk.internal.org.jline.terminal.impl.jna.win.JnaWinConsoleWriter.<init>:(Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;)V
astore 9
start local 9 19: goto 23
end local 9 20: StackMap locals:
StackMap stack:
aload 1
ifnonnull 22
21: ldc "windows"
astore 1
22: StackMap locals:
StackMap stack:
new jdk.internal.org.jline.terminal.impl.jna.win.WindowsAnsiWriter
dup
new java.io.BufferedWriter
dup
new jdk.internal.org.jline.terminal.impl.jna.win.JnaWinConsoleWriter
dup
getstatic jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.consoleOut:Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;
invokespecial jdk.internal.org.jline.terminal.impl.jna.win.JnaWinConsoleWriter.<init>:(Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;)V
invokespecial java.io.BufferedWriter.<init>:(Ljava/io/Writer;)V
getstatic jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.consoleOut:Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;
invokespecial jdk.internal.org.jline.terminal.impl.jna.win.WindowsAnsiWriter.<init>:(Ljava/io/Writer;Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;)V
astore 9
end local 10 start local 9 23: StackMap locals: java.lang.String java.lang.String int java.nio.charset.Charset int int jdk.internal.org.jline.terminal.Terminal$SignalHandler int java.util.function.Function java.io.Writer
StackMap stack:
new jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal
dup
aload 9
aload 0
aload 1
aload 3
iload 4
iload 5
aload 6
aload 8
invokespecial jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.<init>:(Ljava/io/Writer;Ljava/lang/String;Ljava/lang/String;Ljava/nio/charset/Charset;IZLjdk/internal/org/jline/terminal/Terminal$SignalHandler;Ljava/util/function/Function;)V
astore 10
start local 10 24: iload 7
ifne 26
25: aload 10
invokevirtual jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.resume:()V
26: StackMap locals: jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal
StackMap stack:
aload 10
areturn
end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 name Ljava/lang/String;
0 27 1 type Ljava/lang/String;
0 27 2 ansiPassThrough Z
0 27 3 encoding Ljava/nio/charset/Charset;
0 27 4 codepage I
0 27 5 nativeSignals Z
0 27 6 signalHandler Ljdk/internal/org/jline/terminal/Terminal$SignalHandler;
0 27 7 paused Z
0 27 8 inputStreamWrapper Ljava/util/function/Function<Ljava/io/InputStream;Ljava/io/InputStream;>;
6 7 9 writer Ljava/io/Writer;
13 14 9 writer Ljava/io/Writer;
19 20 9 writer Ljava/io/Writer;
23 27 9 writer Ljava/io/Writer;
8 23 10 mode Ljdk/internal/org/jline/terminal/impl/jna/win/IntByReference;
24 27 10 terminal Ljdk/internal/org/jline/terminal/impl/jna/win/JnaWinSysTerminal;
Exception table:
from to target type
9 13 14 Class jdk.internal.org.jline.terminal.impl.jna.win.LastErrorException
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/String;Ljava/lang/String;ZLjava/nio/charset/Charset;IZLjdk/internal/org/jline/terminal/Terminal$SignalHandler;ZLjava/util/function/Function<Ljava/io/InputStream;Ljava/io/InputStream;>;)Ljdk/internal/org/jline/terminal/impl/jna/win/JnaWinSysTerminal;
MethodParameters:
Name Flags
name
type
ansiPassThrough
encoding
codepage
nativeSignals
signalHandler
paused
inputStreamWrapper
void <init>(java.io.Writer, java.lang.String, java.lang.String, java.nio.charset.Charset, int, boolean, jdk.internal.org.jline.terminal.Terminal$SignalHandler, java.util.function.Function<java.io.InputStream, java.io.InputStream>);
descriptor: (Ljava/io/Writer;Ljava/lang/String;Ljava/lang/String;Ljava/nio/charset/Charset;IZLjdk/internal/org/jline/terminal/Terminal$SignalHandler;Ljava/util/function/Function;)V
flags: (0x0000)
Code:
stack=9, locals=9, args_size=9
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 start local 8 0: aload 0
aload 1
aload 2
aload 3
aload 4
iload 5
iload 6
aload 7
aload 8
invokespecial jdk.internal.org.jline.terminal.impl.AbstractWindowsTerminal.<init>:(Ljava/io/Writer;Ljava/lang/String;Ljava/lang/String;Ljava/nio/charset/Charset;IZLjdk/internal/org/jline/terminal/Terminal$SignalHandler;Ljava/util/function/Function;)V
1: aload 0
iconst_3
newarray 5
dup
iconst_0
bipush 27
castore
dup
iconst_1
bipush 91
castore
dup
iconst_2
bipush 32
castore
putfield jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.focus:[C
2: aload 0
bipush 6
newarray 5
dup
iconst_0
bipush 27
castore
dup
iconst_1
bipush 91
castore
dup
iconst_2
bipush 77
castore
dup
iconst_3
bipush 32
castore
dup
iconst_4
bipush 32
castore
dup
iconst_5
bipush 32
castore
putfield jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.mouse:[C
3: aload 0
iconst_1
anewarray jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$INPUT_RECORD
putfield jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.inputEvents:[Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$INPUT_RECORD;
4: aload 0
new jdk.internal.org.jline.terminal.impl.jna.win.IntByReference
dup
invokespecial jdk.internal.org.jline.terminal.impl.jna.win.IntByReference.<init>:()V
putfield jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.eventsRead:Ljdk/internal/org/jline/terminal/impl/jna/win/IntByReference;
5: aload 0
getfield jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.strings:Ljava/util/Map;
getstatic jdk.internal.org.jline.utils.InfoCmp$Capability.key_mouse:Ljdk/internal/org/jline/utils/InfoCmp$Capability;
ldc "\\E[M"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: return
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/org/jline/terminal/impl/jna/win/JnaWinSysTerminal;
0 7 1 writer Ljava/io/Writer;
0 7 2 name Ljava/lang/String;
0 7 3 type Ljava/lang/String;
0 7 4 encoding Ljava/nio/charset/Charset;
0 7 5 codepage I
0 7 6 nativeSignals Z
0 7 7 signalHandler Ljdk/internal/org/jline/terminal/Terminal$SignalHandler;
0 7 8 inputStreamWrapper Ljava/util/function/Function<Ljava/io/InputStream;Ljava/io/InputStream;>;
Exceptions:
throws java.io.IOException
Signature: (Ljava/io/Writer;Ljava/lang/String;Ljava/lang/String;Ljava/nio/charset/Charset;IZLjdk/internal/org/jline/terminal/Terminal$SignalHandler;Ljava/util/function/Function<Ljava/io/InputStream;Ljava/io/InputStream;>;)V
MethodParameters:
Name Flags
writer
name
type
encoding
codepage
nativeSignals
signalHandler
inputStreamWrapper
protected int getConsoleOutputCP();
descriptor: ()I
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic jdk.internal.org.jline.terminal.impl.jna.win.Kernel32.INSTANCE:Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32;
invokeinterface jdk.internal.org.jline.terminal.impl.jna.win.Kernel32.GetConsoleOutputCP:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/org/jline/terminal/impl/jna/win/JnaWinSysTerminal;
protected int getConsoleMode();
descriptor: ()I
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=1
start local 0 0: new jdk.internal.org.jline.terminal.impl.jna.win.IntByReference
dup
invokespecial jdk.internal.org.jline.terminal.impl.jna.win.IntByReference.<init>:()V
astore 1
start local 1 1: getstatic jdk.internal.org.jline.terminal.impl.jna.win.Kernel32.INSTANCE:Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32;
getstatic jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.consoleIn:Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;
aload 1
invokeinterface jdk.internal.org.jline.terminal.impl.jna.win.Kernel32.GetConsoleMode:(Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;Ljdk/internal/org/jline/terminal/impl/jna/win/IntByReference;)V
2: aload 1
invokevirtual jdk.internal.org.jline.terminal.impl.jna.win.IntByReference.getValue:()I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/org/jline/terminal/impl/jna/win/JnaWinSysTerminal;
1 3 1 mode Ljdk/internal/org/jline/terminal/impl/jna/win/IntByReference;
protected void setConsoleMode(int);
descriptor: (I)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic jdk.internal.org.jline.terminal.impl.jna.win.Kernel32.INSTANCE:Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32;
getstatic jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.consoleIn:Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;
iload 1
invokeinterface jdk.internal.org.jline.terminal.impl.jna.win.Kernel32.SetConsoleMode:(Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/org/jline/terminal/impl/jna/win/JnaWinSysTerminal;
0 2 1 mode I
MethodParameters:
Name Flags
mode
public jdk.internal.org.jline.terminal.Size getSize();
descriptor: ()Ljdk/internal/org/jline/terminal/Size;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: new jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$CONSOLE_SCREEN_BUFFER_INFO
dup
invokespecial jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$CONSOLE_SCREEN_BUFFER_INFO.<init>:()V
astore 1
start local 1 1: getstatic jdk.internal.org.jline.terminal.impl.jna.win.Kernel32.INSTANCE:Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32;
getstatic jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.consoleOut:Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;
aload 1
invokeinterface jdk.internal.org.jline.terminal.impl.jna.win.Kernel32.GetConsoleScreenBufferInfo:(Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$CONSOLE_SCREEN_BUFFER_INFO;)V
2: new jdk.internal.org.jline.terminal.Size
dup
aload 1
invokevirtual jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$CONSOLE_SCREEN_BUFFER_INFO.windowWidth:()I
aload 1
invokevirtual jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$CONSOLE_SCREEN_BUFFER_INFO.windowHeight:()I
invokespecial jdk.internal.org.jline.terminal.Size.<init>:(II)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/org/jline/terminal/impl/jna/win/JnaWinSysTerminal;
1 3 1 info Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$CONSOLE_SCREEN_BUFFER_INFO;
public jdk.internal.org.jline.terminal.Size getBufferSize();
descriptor: ()Ljdk/internal/org/jline/terminal/Size;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: new jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$CONSOLE_SCREEN_BUFFER_INFO
dup
invokespecial jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$CONSOLE_SCREEN_BUFFER_INFO.<init>:()V
astore 1
start local 1 1: getstatic jdk.internal.org.jline.terminal.impl.jna.win.Kernel32.INSTANCE:Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32;
getstatic jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.consoleOut:Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;
aload 1
invokeinterface jdk.internal.org.jline.terminal.impl.jna.win.Kernel32.GetConsoleScreenBufferInfo:(Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$CONSOLE_SCREEN_BUFFER_INFO;)V
2: new jdk.internal.org.jline.terminal.Size
dup
aload 1
getfield jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$CONSOLE_SCREEN_BUFFER_INFO.dwSize:Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$COORD;
getfield jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$COORD.X:S
aload 1
getfield jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$CONSOLE_SCREEN_BUFFER_INFO.dwSize:Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$COORD;
getfield jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$COORD.Y:S
invokespecial jdk.internal.org.jline.terminal.Size.<init>:(II)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/org/jline/terminal/impl/jna/win/JnaWinSysTerminal;
1 3 1 info Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$CONSOLE_SCREEN_BUFFER_INFO;
protected boolean processConsoleInput();
descriptor: ()Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
bipush 100
invokevirtual jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.readConsoleInput:(I)Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$INPUT_RECORD;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: iconst_0
ireturn
3: StackMap locals: jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$INPUT_RECORD
StackMap stack:
aload 1
getfield jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$INPUT_RECORD.EventType:S
lookupswitch { // 4
1: 4
2: 8
4: 6
16: 10
default: 12
}
4: StackMap locals:
StackMap stack:
aload 0
aload 1
getfield jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$INPUT_RECORD.Event:Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$INPUT_RECORD$EventUnion;
getfield jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$INPUT_RECORD$EventUnion.KeyEvent:Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$KEY_EVENT_RECORD;
invokevirtual jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.processKeyEvent:(Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$KEY_EVENT_RECORD;)V
5: iconst_1
ireturn
6: StackMap locals:
StackMap stack:
aload 0
getstatic jdk.internal.org.jline.terminal.Terminal$Signal.WINCH:Ljdk/internal/org/jline/terminal/Terminal$Signal;
invokevirtual jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.raise:(Ljdk/internal/org/jline/terminal/Terminal$Signal;)V
7: iconst_0
ireturn
8: StackMap locals:
StackMap stack:
aload 0
aload 1
getfield jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$INPUT_RECORD.Event:Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$INPUT_RECORD$EventUnion;
getfield jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$INPUT_RECORD$EventUnion.MouseEvent:Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$MOUSE_EVENT_RECORD;
invokevirtual jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.processMouseEvent:(Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$MOUSE_EVENT_RECORD;)V
9: iconst_1
ireturn
10: StackMap locals:
StackMap stack:
aload 0
aload 1
getfield jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$INPUT_RECORD.Event:Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$INPUT_RECORD$EventUnion;
getfield jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$INPUT_RECORD$EventUnion.FocusEvent:Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$FOCUS_EVENT_RECORD;
getfield jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$FOCUS_EVENT_RECORD.bSetFocus:Z
invokevirtual jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.processFocusEvent:(Z)V
11: iconst_1
ireturn
12: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljdk/internal/org/jline/terminal/impl/jna/win/JnaWinSysTerminal;
1 13 1 event Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$INPUT_RECORD;
Exceptions:
throws java.io.IOException
private void processKeyEvent(jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$KEY_EVENT_RECORD);
descriptor: (Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$KEY_EVENT_RECORD;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
getfield jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$KEY_EVENT_RECORD.bKeyDown:Z
aload 1
getfield jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$KEY_EVENT_RECORD.wVirtualKeyCode:S
aload 1
getfield jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$KEY_EVENT_RECORD.uChar:Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$UnionChar;
getfield jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$UnionChar.UnicodeChar:C
aload 1
getfield jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$KEY_EVENT_RECORD.dwControlKeyState:I
invokevirtual jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.processKeyEvent:(ZSCI)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/org/jline/terminal/impl/jna/win/JnaWinSysTerminal;
0 2 1 keyEvent Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$KEY_EVENT_RECORD;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
keyEvent
private void processFocusEvent(boolean);
descriptor: (Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.focusTracking:Z
ifeq 5
1: aload 0
getfield jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.focus:[C
iconst_2
iload 1
ifeq 2
bipush 73
goto 3
StackMap locals: jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal int
StackMap stack: char[] int
2: bipush 79
StackMap locals: jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal int
StackMap stack: char[] int int
3: castore
4: aload 0
getfield jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.slaveInputPipe:Ljava/io/Writer;
aload 0
getfield jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.focus:[C
invokevirtual java.io.Writer.write:([C)V
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/org/jline/terminal/impl/jna/win/JnaWinSysTerminal;
0 6 1 hasFocus Z
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
hasFocus
private void processMouseEvent(jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$MOUSE_EVENT_RECORD);
descriptor: (Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$MOUSE_EVENT_RECORD;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: aload 1
getfield jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$MOUSE_EVENT_RECORD.dwEventFlags:I
istore 2
start local 2 1: aload 1
getfield jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$MOUSE_EVENT_RECORD.dwButtonState:I
istore 3
start local 3 2: aload 0
getfield jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.tracking:Ljdk/internal/org/jline/terminal/Terminal$MouseTracking;
getstatic jdk.internal.org.jline.terminal.Terminal$MouseTracking.Off:Ljdk/internal/org/jline/terminal/Terminal$MouseTracking;
if_acmpeq 5
3: aload 0
getfield jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.tracking:Ljdk/internal/org/jline/terminal/Terminal$MouseTracking;
getstatic jdk.internal.org.jline.terminal.Terminal$MouseTracking.Normal:Ljdk/internal/org/jline/terminal/Terminal$MouseTracking;
if_acmpne 4
iload 2
iconst_1
if_icmpeq 5
4: StackMap locals: int int
StackMap stack:
aload 0
getfield jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.tracking:Ljdk/internal/org/jline/terminal/Terminal$MouseTracking;
getstatic jdk.internal.org.jline.terminal.Terminal$MouseTracking.Button:Ljdk/internal/org/jline/terminal/Terminal$MouseTracking;
if_acmpne 6
iload 2
iconst_1
if_icmpne 6
iload 3
ifne 6
5: StackMap locals:
StackMap stack:
return
6: StackMap locals:
StackMap stack:
iconst_0
istore 4
start local 4 7: iload 2
bipush -3
iand
istore 2
8: iload 2
iconst_4
if_icmpne 13
9: iload 4
bipush 64
ior
istore 4
10: iload 3
bipush 16
ishr
ifge 25
11: iload 4
iconst_1
ior
istore 4
12: goto 25
StackMap locals: int
StackMap stack:
13: iload 2
bipush 8
if_icmpne 15
14: return
15: StackMap locals:
StackMap stack:
iload 3
iconst_1
iand
ifeq 18
16: iload 4
iconst_0
ior
istore 4
17: goto 25
StackMap locals:
StackMap stack:
18: iload 3
iconst_2
iand
ifeq 21
19: iload 4
iconst_1
ior
istore 4
20: goto 25
StackMap locals:
StackMap stack:
21: iload 3
iconst_4
iand
ifeq 24
22: iload 4
iconst_2
ior
istore 4
23: goto 25
24: StackMap locals:
StackMap stack:
iload 4
iconst_3
ior
istore 4
25: StackMap locals:
StackMap stack:
aload 1
getfield jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$MOUSE_EVENT_RECORD.dwMousePosition:Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$COORD;
getfield jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$COORD.X:S
istore 5
start local 5 26: aload 1
getfield jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$MOUSE_EVENT_RECORD.dwMousePosition:Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$COORD;
getfield jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$COORD.Y:S
istore 6
start local 6 27: aload 0
getfield jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.mouse:[C
iconst_3
bipush 32
iload 4
iadd
i2c
castore
28: aload 0
getfield jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.mouse:[C
iconst_4
bipush 32
iload 5
iadd
iconst_1
iadd
i2c
castore
29: aload 0
getfield jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.mouse:[C
iconst_5
bipush 32
iload 6
iadd
iconst_1
iadd
i2c
castore
30: aload 0
getfield jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.slaveInputPipe:Ljava/io/Writer;
aload 0
getfield jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.mouse:[C
invokevirtual java.io.Writer.write:([C)V
31: return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 this Ljdk/internal/org/jline/terminal/impl/jna/win/JnaWinSysTerminal;
0 32 1 mouseEvent Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$MOUSE_EVENT_RECORD;
1 32 2 dwEventFlags I
2 32 3 dwButtonState I
7 32 4 cb I
26 32 5 cx I
27 32 6 cy I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
mouseEvent
private jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$INPUT_RECORD readConsoleInput(int);
descriptor: (I)Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$INPUT_RECORD;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: getstatic jdk.internal.org.jline.terminal.impl.jna.win.Kernel32.INSTANCE:Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32;
getstatic jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.consoleIn:Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;
iload 1
invokeinterface jdk.internal.org.jline.terminal.impl.jna.win.Kernel32.WaitForSingleObject:(Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;I)I
ifeq 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
getstatic jdk.internal.org.jline.terminal.impl.jna.win.Kernel32.INSTANCE:Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32;
getstatic jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.consoleIn:Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;
aload 0
getfield jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.inputEvents:[Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$INPUT_RECORD;
iconst_1
aload 0
getfield jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.eventsRead:Ljdk/internal/org/jline/terminal/impl/jna/win/IntByReference;
invokeinterface jdk.internal.org.jline.terminal.impl.jna.win.Kernel32.ReadConsoleInput:(Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;[Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$INPUT_RECORD;ILjdk/internal/org/jline/terminal/impl/jna/win/IntByReference;)V
3: aload 0
getfield jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.eventsRead:Ljdk/internal/org/jline/terminal/impl/jna/win/IntByReference;
invokevirtual jdk.internal.org.jline.terminal.impl.jna.win.IntByReference.getValue:()I
iconst_1
if_icmpne 5
4: aload 0
getfield jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.inputEvents:[Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$INPUT_RECORD;
iconst_0
aaload
areturn
5: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/org/jline/terminal/impl/jna/win/JnaWinSysTerminal;
0 6 1 dwMilliseconds I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
dwMilliseconds
public jdk.internal.org.jline.terminal.Cursor getCursorPosition(java.util.function.IntConsumer);
descriptor: (Ljava/util/function/IntConsumer;)Ljdk/internal/org/jline/terminal/Cursor;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: new jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$CONSOLE_SCREEN_BUFFER_INFO
dup
invokespecial jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$CONSOLE_SCREEN_BUFFER_INFO.<init>:()V
astore 2
start local 2 1: getstatic jdk.internal.org.jline.terminal.impl.jna.win.Kernel32.INSTANCE:Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32;
getstatic jdk.internal.org.jline.terminal.impl.jna.win.JnaWinSysTerminal.consoleOut:Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;
aload 2
invokeinterface jdk.internal.org.jline.terminal.impl.jna.win.Kernel32.GetConsoleScreenBufferInfo:(Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$CONSOLE_SCREEN_BUFFER_INFO;)V
2: new jdk.internal.org.jline.terminal.Cursor
dup
aload 2
getfield jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$CONSOLE_SCREEN_BUFFER_INFO.dwCursorPosition:Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$COORD;
getfield jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$COORD.X:S
aload 2
getfield jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$CONSOLE_SCREEN_BUFFER_INFO.dwCursorPosition:Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$COORD;
getfield jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$COORD.Y:S
invokespecial jdk.internal.org.jline.terminal.Cursor.<init>:(II)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/org/jline/terminal/impl/jna/win/JnaWinSysTerminal;
0 3 1 discarded Ljava/util/function/IntConsumer;
1 3 2 info Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32$CONSOLE_SCREEN_BUFFER_INFO;
MethodParameters:
Name Flags
discarded
}
SourceFile: "JnaWinSysTerminal.java"
InnerClasses:
public final MouseTracking = jdk.internal.org.jline.terminal.Terminal$MouseTracking of jdk.internal.org.jline.terminal.Terminal
public final Signal = jdk.internal.org.jline.terminal.Terminal$Signal of jdk.internal.org.jline.terminal.Terminal
public abstract SignalHandler = jdk.internal.org.jline.terminal.Terminal$SignalHandler of jdk.internal.org.jline.terminal.Terminal
public CONSOLE_SCREEN_BUFFER_INFO = jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$CONSOLE_SCREEN_BUFFER_INFO of jdk.internal.org.jline.terminal.impl.jna.win.Kernel32
public COORD = jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$COORD of jdk.internal.org.jline.terminal.impl.jna.win.Kernel32
public FOCUS_EVENT_RECORD = jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$FOCUS_EVENT_RECORD of jdk.internal.org.jline.terminal.impl.jna.win.Kernel32
public INPUT_RECORD = jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$INPUT_RECORD of jdk.internal.org.jline.terminal.impl.jna.win.Kernel32
public EventUnion = jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$INPUT_RECORD$EventUnion of jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$INPUT_RECORD
public KEY_EVENT_RECORD = jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$KEY_EVENT_RECORD of jdk.internal.org.jline.terminal.impl.jna.win.Kernel32
public MOUSE_EVENT_RECORD = jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$MOUSE_EVENT_RECORD of jdk.internal.org.jline.terminal.impl.jna.win.Kernel32
public UnionChar = jdk.internal.org.jline.terminal.impl.jna.win.Kernel32$UnionChar of jdk.internal.org.jline.terminal.impl.jna.win.Kernel32
public final Capability = jdk.internal.org.jline.utils.InfoCmp$Capability of jdk.internal.org.jline.utils.InfoCmp