jline
Class AnsiWindowsTerminal

java.lang.Object
  extended by jline.TerminalSupport
      extended by jline.WindowsTerminal
          extended by jline.AnsiWindowsTerminal
All Implemented Interfaces:
Terminal

public class AnsiWindowsTerminal
extends WindowsTerminal

ANSI-supported WindowsTerminal.

Since:
2.0

Nested Class Summary
 
Nested classes/interfaces inherited from class jline.WindowsTerminal
WindowsTerminal.ConsoleMode
 
Field Summary
 
Fields inherited from class jline.WindowsTerminal
ANSI, DIRECT_CONSOLE
 
Fields inherited from class jline.TerminalSupport
DEFAULT_HEIGHT, DEFAULT_WIDTH
 
Constructor Summary
AnsiWindowsTerminal()
           
 
Method Summary
 boolean hasWeirdWrap()
          Defaults to true which was the behaviour before this method was added.
 boolean isAnsiSupported()
           
 OutputStream wrapOutIfNeeded(OutputStream out)
          Subclass to change behavior if needed.
 
Methods inherited from class jline.WindowsTerminal
getDirectConsole, getHeight, getWidth, init, isSystemIn, restore, setDirectConsole, setEchoEnabled, wrapInIfNeeded
 
Methods inherited from class jline.TerminalSupport
isEchoEnabled, isSupported, reset, setAnsiSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnsiWindowsTerminal

public AnsiWindowsTerminal()
                    throws Exception
Throws:
Exception
Method Detail

wrapOutIfNeeded

public OutputStream wrapOutIfNeeded(OutputStream out)
Description copied from class: TerminalSupport
Subclass to change behavior if needed.

Specified by:
wrapOutIfNeeded in interface Terminal
Overrides:
wrapOutIfNeeded in class TerminalSupport
Returns:
the passed out

isAnsiSupported

public boolean isAnsiSupported()
Specified by:
isAnsiSupported in interface Terminal
Overrides:
isAnsiSupported in class TerminalSupport

hasWeirdWrap

public boolean hasWeirdWrap()
Description copied from class: TerminalSupport
Defaults to true which was the behaviour before this method was added.

Specified by:
hasWeirdWrap in interface Terminal
Overrides:
hasWeirdWrap in class TerminalSupport


Copyright © 2013. All Rights Reserved.