public class jdk.internal.jline.WindowsTerminal extends jdk.internal.jline.TerminalSupport
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.jline.WindowsTerminal
super_class: jdk.internal.jline.TerminalSupport
{
public static final java.lang.String DIRECT_CONSOLE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final java.lang.String ANSI;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private boolean directConsole;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private int originalMode;
descriptor: I
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.lang.StringBuilder
dup
ldc Ljdk/internal/jline/WindowsTerminal;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".directConsole"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putstatic jdk.internal.jline.WindowsTerminal.DIRECT_CONSOLE:Ljava/lang/String;
1: new java.lang.StringBuilder
dup
ldc Ljdk/internal/jline/WindowsTerminal;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".ansi"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putstatic jdk.internal.jline.WindowsTerminal.ANSI:Ljava/lang/String;
2: ldc "le"
invokestatic java.lang.System.loadLibrary:(Ljava/lang/String;)V
3: invokestatic jdk.internal.jline.WindowsTerminal.initIDs:()V
4: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
invokespecial jdk.internal.jline.TerminalSupport.<init>:(Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jline/WindowsTerminal;
Exceptions:
throws java.lang.Exception
public void init();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokespecial jdk.internal.jline.TerminalSupport.init:()V
1: aload 0
iconst_0
invokevirtual jdk.internal.jline.WindowsTerminal.setAnsiSupported:(Z)V
2: aload 0
getstatic jdk.internal.jline.WindowsTerminal.DIRECT_CONSOLE:Ljava/lang/String;
iconst_1
invokestatic jdk.internal.jline.internal.Configuration.getBoolean:(Ljava/lang/String;Z)Z
invokevirtual jdk.internal.jline.WindowsTerminal.setDirectConsole:(Z)V
3: aload 0
aload 0
invokevirtual jdk.internal.jline.WindowsTerminal.getConsoleMode:()I
putfield jdk.internal.jline.WindowsTerminal.originalMode:I
4: aload 0
aload 0
getfield jdk.internal.jline.WindowsTerminal.originalMode:I
getstatic jdk.internal.jline.WindowsTerminal$ConsoleMode.ENABLE_ECHO_INPUT:Ljdk/internal/jline/WindowsTerminal$ConsoleMode;
getfield jdk.internal.jline.WindowsTerminal$ConsoleMode.code:I
iconst_m1
ixor
iand
invokevirtual jdk.internal.jline.WindowsTerminal.setConsoleMode:(I)V
5: aload 0
iconst_0
invokevirtual jdk.internal.jline.WindowsTerminal.setEchoEnabled:(Z)V
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/jline/WindowsTerminal;
Exceptions:
throws java.lang.Exception
public void restore();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield jdk.internal.jline.WindowsTerminal.originalMode:I
invokevirtual jdk.internal.jline.WindowsTerminal.setConsoleMode:(I)V
1: aload 0
invokespecial jdk.internal.jline.TerminalSupport.restore:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jline/WindowsTerminal;
Exceptions:
throws java.lang.Exception
public int getWidth();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual jdk.internal.jline.WindowsTerminal.getWindowsTerminalWidth:()I
istore 1
start local 1 1: iload 1
iconst_1
if_icmpge 2
bipush 80
goto 3
StackMap locals: int
StackMap stack:
2: iload 1
StackMap locals:
StackMap stack: int
3: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/jline/WindowsTerminal;
1 4 1 w I
public int getHeight();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual jdk.internal.jline.WindowsTerminal.getWindowsTerminalHeight:()I
istore 1
start local 1 1: iload 1
iconst_1
if_icmpge 2
bipush 24
goto 3
StackMap locals: int
StackMap stack:
2: iload 1
StackMap locals:
StackMap stack: int
3: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/jline/WindowsTerminal;
1 4 1 h I
public void setEchoEnabled(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifeq 8
1: aload 0
aload 0
invokevirtual jdk.internal.jline.WindowsTerminal.getConsoleMode:()I
2: getstatic jdk.internal.jline.WindowsTerminal$ConsoleMode.ENABLE_ECHO_INPUT:Ljdk/internal/jline/WindowsTerminal$ConsoleMode;
getfield jdk.internal.jline.WindowsTerminal$ConsoleMode.code:I
ior
3: getstatic jdk.internal.jline.WindowsTerminal$ConsoleMode.ENABLE_LINE_INPUT:Ljdk/internal/jline/WindowsTerminal$ConsoleMode;
getfield jdk.internal.jline.WindowsTerminal$ConsoleMode.code:I
ior
4: getstatic jdk.internal.jline.WindowsTerminal$ConsoleMode.ENABLE_PROCESSED_INPUT:Ljdk/internal/jline/WindowsTerminal$ConsoleMode;
getfield jdk.internal.jline.WindowsTerminal$ConsoleMode.code:I
ior
5: getstatic jdk.internal.jline.WindowsTerminal$ConsoleMode.ENABLE_WINDOW_INPUT:Ljdk/internal/jline/WindowsTerminal$ConsoleMode;
getfield jdk.internal.jline.WindowsTerminal$ConsoleMode.code:I
ior
6: invokevirtual jdk.internal.jline.WindowsTerminal.setConsoleMode:(I)V
7: goto 17
8: StackMap locals:
StackMap stack:
aload 0
aload 0
invokevirtual jdk.internal.jline.WindowsTerminal.getConsoleMode:()I
9: getstatic jdk.internal.jline.WindowsTerminal$ConsoleMode.ENABLE_LINE_INPUT:Ljdk/internal/jline/WindowsTerminal$ConsoleMode;
getfield jdk.internal.jline.WindowsTerminal$ConsoleMode.code:I
10: getstatic jdk.internal.jline.WindowsTerminal$ConsoleMode.ENABLE_ECHO_INPUT:Ljdk/internal/jline/WindowsTerminal$ConsoleMode;
getfield jdk.internal.jline.WindowsTerminal$ConsoleMode.code:I
11: ior
12: getstatic jdk.internal.jline.WindowsTerminal$ConsoleMode.ENABLE_PROCESSED_INPUT:Ljdk/internal/jline/WindowsTerminal$ConsoleMode;
getfield jdk.internal.jline.WindowsTerminal$ConsoleMode.code:I
13: ior
14: getstatic jdk.internal.jline.WindowsTerminal$ConsoleMode.ENABLE_WINDOW_INPUT:Ljdk/internal/jline/WindowsTerminal$ConsoleMode;
getfield jdk.internal.jline.WindowsTerminal$ConsoleMode.code:I
15: ior
iconst_m1
ixor
iand
16: invokevirtual jdk.internal.jline.WindowsTerminal.setConsoleMode:(I)V
17: StackMap locals:
StackMap stack:
aload 0
iload 1
invokespecial jdk.internal.jline.TerminalSupport.setEchoEnabled:(Z)V
18: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Ljdk/internal/jline/WindowsTerminal;
0 19 1 enabled Z
MethodParameters:
Name Flags
enabled final
public void setDirectConsole(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield jdk.internal.jline.WindowsTerminal.directConsole:Z
iconst_2
anewarray java.lang.Object
dup
iconst_0
1: ldc "Direct console: "
aastore
dup
iconst_1
iload 1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
aastore
invokestatic jdk.internal.jline.internal.Log.debug:([Ljava/lang/Object;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jline/WindowsTerminal;
0 3 1 flag Z
MethodParameters:
Name Flags
flag final
public java.lang.Boolean getDirectConsole();
descriptor: ()Ljava/lang/Boolean;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jline.WindowsTerminal.directConsole:Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jline/WindowsTerminal;
public java.io.InputStream wrapInIfNeeded(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.jline.WindowsTerminal.directConsole:Z
ifeq 2
aload 0
aload 1
invokevirtual jdk.internal.jline.WindowsTerminal.isSystemIn:(Ljava/io/InputStream;)Z
ifeq 2
1: new jdk.internal.jline.WindowsTerminal$1
dup
aload 0
invokespecial jdk.internal.jline.WindowsTerminal$1.<init>:(Ljdk/internal/jline/WindowsTerminal;)V
areturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial jdk.internal.jline.TerminalSupport.wrapInIfNeeded:(Ljava/io/InputStream;)Ljava/io/InputStream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jline/WindowsTerminal;
0 3 1 in Ljava/io/InputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
in
protected boolean isSystemIn(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 1
getstatic java.lang.System.in:Ljava/io/InputStream;
if_acmpne 4
3: iconst_1
ireturn
4: StackMap locals:
StackMap stack:
aload 1
instanceof java.io.FileInputStream
ifeq 6
aload 1
checkcast java.io.FileInputStream
invokevirtual java.io.FileInputStream.getFD:()Ljava/io/FileDescriptor;
getstatic java.io.FileDescriptor.in:Ljava/io/FileDescriptor;
if_acmpne 6
5: iconst_1
ireturn
6: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/jline/WindowsTerminal;
0 7 1 in Ljava/io/InputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
in final
public java.lang.String getOutputEncoding();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual jdk.internal.jline.WindowsTerminal.getConsoleOutputCodepage:()I
istore 1
start local 1 1: new java.lang.StringBuilder
dup
ldc "ms"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
start local 2 2: aload 2
invokestatic java.nio.charset.Charset.isSupported:(Ljava/lang/String;)Z
ifeq 4
3: aload 2
areturn
4: StackMap locals: int java.lang.String
StackMap stack:
new java.lang.StringBuilder
dup
ldc "cp"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 5: aload 3
invokestatic java.nio.charset.Charset.isSupported:(Ljava/lang/String;)Z
ifeq 7
6: aload 3
areturn
StackMap locals: java.lang.String
StackMap stack:
7: iconst_1
anewarray java.lang.Object
dup
iconst_0
8: new java.lang.StringBuilder
dup
ldc "can't figure out the Java Charset of this code page ("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ")..."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
invokestatic jdk.internal.jline.internal.Log.debug:([Ljava/lang/Object;)V
9: aload 0
invokespecial jdk.internal.jline.TerminalSupport.getOutputEncoding:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/internal/jline/WindowsTerminal;
1 10 1 codepage I
2 10 2 charsetMS Ljava/lang/String;
5 10 3 charsetCP Ljava/lang/String;
private static native void initIDs();
descriptor: ()V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
protected native int getConsoleMode();
descriptor: ()I
flags: (0x0104) ACC_PROTECTED, ACC_NATIVE
protected native void setConsoleMode(int);
descriptor: (I)V
flags: (0x0104) ACC_PROTECTED, ACC_NATIVE
MethodParameters:
Name Flags
mode
private byte[] readConsoleInput();
descriptor: ()[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual jdk.internal.jline.WindowsTerminal.readKeyEvent:()Ljdk/internal/jline/WindowsTerminal$KEY_EVENT_RECORD;
astore 1
start local 1 1: aload 1
invokestatic jdk.internal.jline.WindowsTerminal.convertKeys:(Ljdk/internal/jline/WindowsTerminal$KEY_EVENT_RECORD;)Ljava/lang/String;
invokevirtual java.lang.String.getBytes:()[B
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jline/WindowsTerminal;
1 2 1 keyEvent Ljdk/internal/jline/WindowsTerminal$KEY_EVENT_RECORD;
public static java.lang.String convertKeys(jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD);
descriptor: (Ljdk/internal/jline/WindowsTerminal$KEY_EVENT_RECORD;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: ldc ""
areturn
2: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 3: aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.keyDown:Z
ifeq 75
4: aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.uchar:C
ifle 22
5: iconst_0
istore 2
start local 2 6: aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.controlKeyState:I
bipush 12
iand
ifeq 10
7: aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.keyCode:I
tableswitch { // 67 - 67
67: 8
default: 10
}
8: StackMap locals: java.lang.StringBuilder int
StackMap stack:
aload 1
ldc "\u0003"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
9: iconst_1
istore 2
10: StackMap locals:
StackMap stack:
aload 0
11: getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.controlKeyState:I
bipush 16
iand
ifeq 15
12: aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.keyCode:I
tableswitch { // 9 - 9
9: 13
default: 15
}
13: StackMap locals:
StackMap stack:
aload 1
ldc "\u001B[Z"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
14: iconst_1
istore 2
15: StackMap locals:
StackMap stack:
iload 2
ifne 77
16: aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.uchar:C
bipush 64
if_icmplt 17
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.uchar:C
bipush 95
if_icmple 18
StackMap locals:
StackMap stack:
17: aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.uchar:C
bipush 97
if_icmplt 20
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.uchar:C
bipush 122
if_icmpgt 20
18: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.controlKeyState:I
iconst_3
iand
ifeq 20
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.controlKeyState:I
bipush 12
iand
ifne 20
19: aload 1
bipush 27
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
20: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.uchar:C
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
end local 2 21: goto 77
22: StackMap locals:
StackMap stack:
aconst_null
astore 2
start local 2 23: aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.keyCode:I
lookupswitch { // 22
33: 24
34: 26
35: 28
36: 30
37: 32
38: 34
39: 36
40: 38
45: 40
46: 42
112: 44
113: 46
114: 48
115: 50
116: 52
117: 54
118: 56
119: 58
120: 60
121: 62
122: 64
123: 66
default: 68
}
24: StackMap locals: java.lang.String
StackMap stack:
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.controlKeyState:I
ldc "\u001B[5~"
ldc "\u001B[5;%d~"
invokestatic jdk.internal.jline.WindowsTerminal.escapeSequence:(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
25: goto 68
26: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.controlKeyState:I
ldc "\u001B[6~"
ldc "\u001B[6;%d~"
invokestatic jdk.internal.jline.WindowsTerminal.escapeSequence:(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
27: goto 68
28: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.controlKeyState:I
ldc "\u001B[4~"
ldc "\u001B[4;%d~"
invokestatic jdk.internal.jline.WindowsTerminal.escapeSequence:(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
29: goto 68
30: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.controlKeyState:I
ldc "\u001B[1~"
ldc "\u001B[1;%d~"
invokestatic jdk.internal.jline.WindowsTerminal.escapeSequence:(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
31: goto 68
32: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.controlKeyState:I
ldc "\u001B[D"
ldc "\u001B[1;%dD"
invokestatic jdk.internal.jline.WindowsTerminal.escapeSequence:(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
33: goto 68
34: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.controlKeyState:I
ldc "\u001B[A"
ldc "\u001B[1;%dA"
invokestatic jdk.internal.jline.WindowsTerminal.escapeSequence:(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
35: goto 68
36: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.controlKeyState:I
ldc "\u001B[C"
ldc "\u001B[1;%dC"
invokestatic jdk.internal.jline.WindowsTerminal.escapeSequence:(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
37: goto 68
38: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.controlKeyState:I
ldc "\u001B[B"
ldc "\u001B[1;%dB"
invokestatic jdk.internal.jline.WindowsTerminal.escapeSequence:(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
39: goto 68
40: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.controlKeyState:I
ldc "\u001B[2~"
ldc "\u001B[2;%d~"
invokestatic jdk.internal.jline.WindowsTerminal.escapeSequence:(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
41: goto 68
42: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.controlKeyState:I
ldc "\u001B[3~"
ldc "\u001B[3;%d~"
invokestatic jdk.internal.jline.WindowsTerminal.escapeSequence:(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
43: goto 68
44: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.controlKeyState:I
ldc "\u001BOP"
ldc "\u001BO%dP"
invokestatic jdk.internal.jline.WindowsTerminal.escapeSequence:(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
45: goto 68
46: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.controlKeyState:I
ldc "\u001BOQ"
ldc "\u001BO%dQ"
invokestatic jdk.internal.jline.WindowsTerminal.escapeSequence:(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
47: goto 68
48: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.controlKeyState:I
ldc "\u001BOR"
ldc "\u001BO%dR"
invokestatic jdk.internal.jline.WindowsTerminal.escapeSequence:(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
49: goto 68
50: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.controlKeyState:I
ldc "\u001BOS"
ldc "\u001BO%dS"
invokestatic jdk.internal.jline.WindowsTerminal.escapeSequence:(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
51: goto 68
52: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.controlKeyState:I
ldc "\u001B[15~"
ldc "\u001B[15;%d~"
invokestatic jdk.internal.jline.WindowsTerminal.escapeSequence:(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
53: goto 68
54: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.controlKeyState:I
ldc "\u001B[17~"
ldc "\u001B[17;%d~"
invokestatic jdk.internal.jline.WindowsTerminal.escapeSequence:(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
55: goto 68
56: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.controlKeyState:I
ldc "\u001B[18~"
ldc "\u001B[18;%d~"
invokestatic jdk.internal.jline.WindowsTerminal.escapeSequence:(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
57: goto 68
58: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.controlKeyState:I
ldc "\u001B[19~"
ldc "\u001B[19;%d~"
invokestatic jdk.internal.jline.WindowsTerminal.escapeSequence:(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
59: goto 68
60: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.controlKeyState:I
ldc "\u001B[20~"
ldc "\u001B[20;%d~"
invokestatic jdk.internal.jline.WindowsTerminal.escapeSequence:(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
61: goto 68
62: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.controlKeyState:I
ldc "\u001B[21~"
ldc "\u001B[21;%d~"
invokestatic jdk.internal.jline.WindowsTerminal.escapeSequence:(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
63: goto 68
64: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.controlKeyState:I
ldc "\u001B[23~"
ldc "\u001B[23;%d~"
invokestatic jdk.internal.jline.WindowsTerminal.escapeSequence:(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
65: goto 68
66: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.controlKeyState:I
ldc "\u001B[24~"
ldc "\u001B[24;%d~"
invokestatic jdk.internal.jline.WindowsTerminal.escapeSequence:(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
67: goto 68
68: StackMap locals:
StackMap stack:
aload 2
ifnull 77
69: iconst_0
istore 3
start local 3 70: goto 73
71: StackMap locals: int
StackMap stack:
aload 1
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
72: iinc 3 1
StackMap locals:
StackMap stack:
73: iload 3
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.repeatCount:I
if_icmplt 71
end local 3 end local 2 74: goto 77
75: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.keyCode:I
bipush 18
if_icmpne 77
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.uchar:C
ifle 77
76: aload 1
aload 0
getfield jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD.uchar:C
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
77: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 78 0 keyEvent Ljdk/internal/jline/WindowsTerminal$KEY_EVENT_RECORD;
3 78 1 sb Ljava/lang/StringBuilder;
6 21 2 handled Z
23 74 2 escapeSequence Ljava/lang/String;
70 74 3 k I
MethodParameters:
Name Flags
keyEvent
private static java.lang.String escapeSequence(int, java.lang.String, java.lang.String);
descriptor: (ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iconst_1
istore 3
start local 3 1: iload 0
bipush 16
iand
ifeq 3
2: iinc 3 1
3: StackMap locals: int
StackMap stack:
iload 0
iconst_3
iand
ifeq 5
4: iinc 3 2
5: StackMap locals:
StackMap stack:
iload 0
bipush 12
iand
ifeq 7
6: iinc 3 4
7: StackMap locals:
StackMap stack:
iload 3
iconst_1
if_icmple 9
8: aload 2
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
9: StackMap locals:
StackMap stack:
aload 1
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 controlKeyState I
0 10 1 noControlSequence Ljava/lang/String;
0 10 2 withControlSequence Ljava/lang/String;
1 10 3 controlNum I
MethodParameters:
Name Flags
controlKeyState
noControlSequence
withControlSequence
private native jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD readKeyEvent();
descriptor: ()Ljdk/internal/jline/WindowsTerminal$KEY_EVENT_RECORD;
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
private native int getConsoleOutputCodepage();
descriptor: ()I
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
private native int getWindowsTerminalWidth();
descriptor: ()I
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
private native int getWindowsTerminalHeight();
descriptor: ()I
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
}
SourceFile: "WindowsTerminal.java"
NestMembers:
jdk.internal.jline.WindowsTerminal$1 jdk.internal.jline.WindowsTerminal$ConsoleMode jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD
InnerClasses:
jdk.internal.jline.WindowsTerminal$1
public final ConsoleMode = jdk.internal.jline.WindowsTerminal$ConsoleMode of jdk.internal.jline.WindowsTerminal
public KEY_EVENT_RECORD = jdk.internal.jline.WindowsTerminal$KEY_EVENT_RECORD of jdk.internal.jline.WindowsTerminal