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 intJANSI_MAJOR_VERSION(package private) static intJANSI_MINOR_VERSION
-
Constructor Summary
Constructors Constructor Description JansiSupportImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Ptycurrent()static intgetJansiMajorVersion()static intgetJansiMinorVersion()static booleanisAtLeast(int major, int minor)booleanisConsoleInput()booleanisConsoleOutput()booleanisWindowsConsole()Ptyopen(Attributes attributes, Size size)TerminalwinSysTerminal(java.lang.String name, java.lang.String type, boolean ansiPassThrough, java.nio.charset.Charset encoding, int codepage, boolean nativeSignals, Terminal.SignalHandler signalHandler)TerminalwinSysTerminal(java.lang.String name, java.lang.String type, boolean ansiPassThrough, java.nio.charset.Charset encoding, int codepage, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused)
-
-
-
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:
currentin interfaceJansiSupport- Throws:
java.io.IOException
-
open
public Pty open(Attributes attributes, Size size) throws java.io.IOException
- Specified by:
openin 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:
winSysTerminalin 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:
winSysTerminalin interfaceJansiSupport- Throws:
java.io.IOException
-
isWindowsConsole
public boolean isWindowsConsole()
- Specified by:
isWindowsConsolein interfaceJansiSupport
-
isConsoleOutput
public boolean isConsoleOutput()
- Specified by:
isConsoleOutputin interfaceJansiSupport
-
isConsoleInput
public boolean isConsoleInput()
- Specified by:
isConsoleInputin interfaceJansiSupport
-
-