public class jdk.internal.jline.UnixTerminal extends jdk.internal.jline.TerminalSupport
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.jline.UnixTerminal
super_class: jdk.internal.jline.TerminalSupport
{
private final jdk.internal.jline.internal.TerminalLineSettings settings;
descriptor: Ljdk/internal/jline/internal/TerminalLineSettings;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
invokespecial jdk.internal.jline.TerminalSupport.<init>:(Z)V
1: aload 0
new jdk.internal.jline.internal.TerminalLineSettings
dup
invokespecial jdk.internal.jline.internal.TerminalLineSettings.<init>:()V
putfield jdk.internal.jline.UnixTerminal.settings:Ljdk/internal/jline/internal/TerminalLineSettings;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jline/UnixTerminal;
Exceptions:
throws java.lang.Exception
protected jdk.internal.jline.internal.TerminalLineSettings getSettings();
descriptor: ()Ljdk/internal/jline/internal/TerminalLineSettings;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jline.UnixTerminal.settings:Ljdk/internal/jline/internal/TerminalLineSettings;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jline/UnixTerminal;
public void init();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial jdk.internal.jline.TerminalSupport.init:()V
1: aload 0
iconst_1
invokevirtual jdk.internal.jline.UnixTerminal.setAnsiSupported:(Z)V
2: aload 0
getfield jdk.internal.jline.UnixTerminal.settings:Ljdk/internal/jline/internal/TerminalLineSettings;
ldc "-icanon min 1 -icrnl -inlcr -ixon"
invokevirtual jdk.internal.jline.internal.TerminalLineSettings.set:(Ljava/lang/String;)V
3: aload 0
getfield jdk.internal.jline.UnixTerminal.settings:Ljdk/internal/jline/internal/TerminalLineSettings;
ldc "dsusp undef"
invokevirtual jdk.internal.jline.internal.TerminalLineSettings.set:(Ljava/lang/String;)V
4: aload 0
iconst_0
invokevirtual jdk.internal.jline.UnixTerminal.setEchoEnabled:(Z)V
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/jline/UnixTerminal;
Exceptions:
throws java.lang.Exception
public void restore();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jline.UnixTerminal.settings:Ljdk/internal/jline/internal/TerminalLineSettings;
invokevirtual jdk.internal.jline.internal.TerminalLineSettings.restore:()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/UnixTerminal;
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
getfield jdk.internal.jline.UnixTerminal.settings:Ljdk/internal/jline/internal/TerminalLineSettings;
ldc "columns"
invokevirtual jdk.internal.jline.internal.TerminalLineSettings.getProperty:(Ljava/lang/String;)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/UnixTerminal;
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
getfield jdk.internal.jline.UnixTerminal.settings:Ljdk/internal/jline/internal/TerminalLineSettings;
ldc "rows"
invokevirtual jdk.internal.jline.internal.TerminalLineSettings.getProperty:(Ljava/lang/String;)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/UnixTerminal;
1 4 1 h I
public synchronized void setEchoEnabled(boolean);
descriptor: (Z)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: iload 1
ifeq 3
1: aload 0
getfield jdk.internal.jline.UnixTerminal.settings:Ljdk/internal/jline/internal/TerminalLineSettings;
ldc "echo"
invokevirtual jdk.internal.jline.internal.TerminalLineSettings.set:(Ljava/lang/String;)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.UnixTerminal.settings:Ljdk/internal/jline/internal/TerminalLineSettings;
ldc "-echo"
invokevirtual jdk.internal.jline.internal.TerminalLineSettings.set:(Ljava/lang/String;)V
4: StackMap locals:
StackMap stack:
aload 0
iload 1
invokespecial jdk.internal.jline.TerminalSupport.setEchoEnabled:(Z)V
5: goto 13
6: StackMap locals:
StackMap stack: java.lang.Exception
astore 2
start local 2 7: aload 2
instanceof java.lang.InterruptedException
ifeq 9
8: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.interrupt:()V
StackMap locals: java.lang.Exception
StackMap stack:
9: iconst_4
anewarray java.lang.Object
dup
iconst_0
10: ldc "Failed to "
aastore
dup
iconst_1
iload 1
ifeq 11
ldc "enable"
goto 12
StackMap locals: jdk.internal.jline.UnixTerminal int java.lang.Exception
StackMap stack: java.lang.Object[] java.lang.Object[] int
11: ldc "disable"
StackMap locals: jdk.internal.jline.UnixTerminal int java.lang.Exception
StackMap stack: java.lang.Object[] java.lang.Object[] int java.lang.String
12: aastore
dup
iconst_2
ldc " echo"
aastore
dup
iconst_3
aload 2
aastore
invokestatic jdk.internal.jline.internal.Log.error:([Ljava/lang/Object;)V
end local 2 13: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljdk/internal/jline/UnixTerminal;
0 14 1 enabled Z
7 13 2 e Ljava/lang/Exception;
Exception table:
from to target type
0 5 6 Class java.lang.Exception
MethodParameters:
Name Flags
enabled final
public void disableInterruptCharacter();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jline.UnixTerminal.settings:Ljdk/internal/jline/internal/TerminalLineSettings;
ldc "intr undef"
invokevirtual jdk.internal.jline.internal.TerminalLineSettings.set:(Ljava/lang/String;)V
1: goto 7
2: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 3: aload 1
instanceof java.lang.InterruptedException
ifeq 5
4: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.interrupt:()V
StackMap locals: java.lang.Exception
StackMap stack:
5: iconst_2
anewarray java.lang.Object
dup
iconst_0
6: ldc "Failed to disable interrupt character"
aastore
dup
iconst_1
aload 1
aastore
invokestatic jdk.internal.jline.internal.Log.error:([Ljava/lang/Object;)V
end local 1 7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/internal/jline/UnixTerminal;
3 7 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
public void enableInterruptCharacter();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jline.UnixTerminal.settings:Ljdk/internal/jline/internal/TerminalLineSettings;
ldc "intr ^C"
invokevirtual jdk.internal.jline.internal.TerminalLineSettings.set:(Ljava/lang/String;)V
1: goto 7
2: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 3: aload 1
instanceof java.lang.InterruptedException
ifeq 5
4: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.interrupt:()V
StackMap locals: java.lang.Exception
StackMap stack:
5: iconst_2
anewarray java.lang.Object
dup
iconst_0
6: ldc "Failed to enable interrupt character"
aastore
dup
iconst_1
aload 1
aastore
invokestatic jdk.internal.jline.internal.Log.error:([Ljava/lang/Object;)V
end local 1 7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/internal/jline/UnixTerminal;
3 7 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
}
SourceFile: "UnixTerminal.java"