Package org.jline.terminal.impl.jansi
Class JansiSupportImpl
- java.lang.Object
-
- org.jline.terminal.impl.jansi.JansiSupportImpl
-
- All Implemented Interfaces:
JansiSupport
public class JansiSupportImpl extends java.lang.Object implements JansiSupport
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
JANSI_MAJOR_VERSION
(package private) static int
JANSI_MINOR_VERSION
-
Constructor Summary
Constructors Constructor Description JansiSupportImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Pty
current()
static int
getJansiMajorVersion()
static int
getJansiMinorVersion()
static boolean
isAtLeast(int major, int minor)
boolean
isConsoleOutput(boolean pty)
boolean
isWindowsConsole()
Pty
open(Attributes attributes, Size size)
Terminal
winSysTerminal(java.lang.String name, java.lang.String type, boolean ansiPassThrough, java.nio.charset.Charset encoding, int codepage, boolean nativeSignals, Terminal.SignalHandler signalHandler)
Terminal
winSysTerminal(java.lang.String name, java.lang.String type, boolean ansiPassThrough, java.nio.charset.Charset encoding, int codepage, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jline.terminal.spi.JansiSupport
isConsoleOutput
-
-
-
-
Method Detail
-
getJansiMajorVersion
public static int getJansiMajorVersion()
-
getJansiMinorVersion
public static int getJansiMinorVersion()
-
isAtLeast
public static boolean isAtLeast(int major, int minor)
-
current
public Pty current() throws java.io.IOException
- Specified by:
current
in interfaceJansiSupport
- Throws:
java.io.IOException
-
open
public Pty open(Attributes attributes, Size size) throws java.io.IOException
- Specified by:
open
in interfaceJansiSupport
- Throws:
java.io.IOException
-
winSysTerminal
public Terminal winSysTerminal(java.lang.String name, java.lang.String type, boolean ansiPassThrough, java.nio.charset.Charset encoding, int codepage, boolean nativeSignals, Terminal.SignalHandler signalHandler) throws java.io.IOException
- Specified by:
winSysTerminal
in interfaceJansiSupport
- Throws:
java.io.IOException
-
winSysTerminal
public Terminal winSysTerminal(java.lang.String name, java.lang.String type, boolean ansiPassThrough, java.nio.charset.Charset encoding, int codepage, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused) throws java.io.IOException
- Specified by:
winSysTerminal
in interfaceJansiSupport
- Throws:
java.io.IOException
-
isWindowsConsole
public boolean isWindowsConsole()
- Specified by:
isWindowsConsole
in interfaceJansiSupport
-
isConsoleOutput
public boolean isConsoleOutput(boolean pty)
- Specified by:
isConsoleOutput
in interfaceJansiSupport
-
-