Class AnsiWindowsTerminal
java.lang.Object
jline.TerminalSupport
jline.WindowsTerminal
jline.AnsiWindowsTerminal
- All Implemented Interfaces:
Terminal
-
Nested Class Summary
Nested classes/interfaces inherited from class WindowsTerminal
WindowsTerminal.ConsoleMode -
Field Summary
FieldsFields inherited from class WindowsTerminal
ANSI, DIRECT_CONSOLEFields inherited from class TerminalSupport
DEFAULT_HEIGHT, DEFAULT_WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleanbooleanDefaults to true which was the behaviour before this method was added.booleanSubclass to change behavior if needed.private static OutputStreamwrapOutputStream(OutputStream stream) Returns an ansi output stream handler.Methods inherited from class WindowsTerminal
disableInterruptCharacter, enableInterruptCharacter, getDirectConsole, getHeight, getOutputEncoding, getWidth, init, isSystemIn, restore, setDirectConsole, setEchoEnabled, wrapInIfNeededMethods inherited from class TerminalSupport
isEchoEnabled, isSupported, reset, setAnsiSupported
-
Field Details
-
ansiSupported
private final boolean ansiSupported
-
-
Constructor Details
-
AnsiWindowsTerminal
-
-
Method Details
-
wrapOutIfNeeded
Description copied from class:TerminalSupportSubclass to change behavior if needed.- Specified by:
wrapOutIfNeededin interfaceTerminal- Overrides:
wrapOutIfNeededin classTerminalSupport- Returns:
- the passed out
-
wrapOutputStream
Returns an ansi output stream handler. We return whatever was passed if we determine we cannot handle ansi based on Kernel32 calls.- Returns:
- an @{link AltWindowAnsiOutputStream} instance or the passed stream.
-
detectAnsiSupport
private static boolean detectAnsiSupport() -
isAnsiSupported
public boolean isAnsiSupported()- Specified by:
isAnsiSupportedin interfaceTerminal- Overrides:
isAnsiSupportedin classTerminalSupport
-
hasWeirdWrap
public boolean hasWeirdWrap()Description copied from class:TerminalSupportDefaults to true which was the behaviour before this method was added.- Specified by:
hasWeirdWrapin interfaceTerminal- Overrides:
hasWeirdWrapin classTerminalSupport
-