Package org.jline.terminal.impl.jansi
Class JansiSupportImpl
java.lang.Object
org.jline.terminal.impl.jansi.JansiSupportImpl
- All Implemented Interfaces:
JansiSupport
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int
(package private) static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncurrent()
static int
static int
static boolean
isAtLeast
(int major, int minor) boolean
boolean
boolean
open
(Attributes attributes, Size size) winSysTerminal
(String name, String type, boolean ansiPassThrough, Charset encoding, int codepage, boolean nativeSignals, Terminal.SignalHandler signalHandler) winSysTerminal
(String name, String type, boolean ansiPassThrough, Charset encoding, int codepage, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused)
-
Field Details
-
JANSI_MAJOR_VERSION
static final int JANSI_MAJOR_VERSION -
JANSI_MINOR_VERSION
static final int JANSI_MINOR_VERSION
-
-
Constructor Details
-
JansiSupportImpl
public JansiSupportImpl()
-
-
Method Details
-
getJansiMajorVersion
public static int getJansiMajorVersion() -
getJansiMinorVersion
public static int getJansiMinorVersion() -
isAtLeast
public static boolean isAtLeast(int major, int minor) -
current
- Specified by:
current
in interfaceJansiSupport
- Throws:
IOException
-
open
- Specified by:
open
in interfaceJansiSupport
- Throws:
IOException
-
winSysTerminal
public Terminal winSysTerminal(String name, String type, boolean ansiPassThrough, Charset encoding, int codepage, boolean nativeSignals, Terminal.SignalHandler signalHandler) throws IOException - Specified by:
winSysTerminal
in interfaceJansiSupport
- Throws:
IOException
-
winSysTerminal
public Terminal winSysTerminal(String name, String type, boolean ansiPassThrough, Charset encoding, int codepage, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused) throws IOException - Specified by:
winSysTerminal
in interfaceJansiSupport
- Throws:
IOException
-
isWindowsConsole
public boolean isWindowsConsole()- Specified by:
isWindowsConsole
in interfaceJansiSupport
-
isConsoleOutput
public boolean isConsoleOutput()- Specified by:
isConsoleOutput
in interfaceJansiSupport
-
isConsoleInput
public boolean isConsoleInput()- Specified by:
isConsoleInput
in interfaceJansiSupport
-