org.codehaus.mojo.pomtools.console.toolkit.terminal
Class VT100Terminal

java.lang.Object
  extended by org.codehaus.mojo.pomtools.console.toolkit.terminal.AbstractTerminal
      extended by org.codehaus.mojo.pomtools.console.toolkit.terminal.VT100Terminal
All Implemented Interfaces:
Terminal

public class VT100Terminal
extends AbstractTerminal

Very simple terminal emulation for VT100 or linux terminals

Version:
$Id: VT100Terminal.java 2166 2006-07-18 21:32:16Z carlos $
Author:
David Hawkins

Field Summary
 
Fields inherited from interface org.codehaus.mojo.pomtools.console.toolkit.terminal.Terminal
BOLD_END, BOLD_START
 
Constructor Summary
VT100Terminal()
           
VT100Terminal(org.codehaus.plexus.components.interactivity.InputHandler inputHandler, org.codehaus.plexus.components.interactivity.OutputHandler outputHandler)
           
 
Method Summary
 String bold(String s)
           
 void clearScreen()
           
 int encodingLength(String s)
           
 int length(String s)
          Returns the length of the String without any escape codes
 String reverse(String s)
           
 boolean supportsClearScreen()
           
 boolean supportsFormatting()
           
 String underline(String s)
           
 
Methods inherited from class org.codehaus.mojo.pomtools.console.toolkit.terminal.AbstractTerminal
readLine, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VT100Terminal

public VT100Terminal()
              throws ConsoleExecutionException
Throws:
ConsoleExecutionException

VT100Terminal

public VT100Terminal(org.codehaus.plexus.components.interactivity.InputHandler inputHandler,
                     org.codehaus.plexus.components.interactivity.OutputHandler outputHandler)
              throws ConsoleExecutionException
Throws:
ConsoleExecutionException
Method Detail

clearScreen

public void clearScreen()
                 throws ConsoleExecutionException
Throws:
ConsoleExecutionException

supportsClearScreen

public boolean supportsClearScreen()

supportsFormatting

public boolean supportsFormatting()

bold

public String bold(String s)

underline

public String underline(String s)

reverse

public String reverse(String s)

length

public int length(String s)
Returns the length of the String without any escape codes


encodingLength

public int encodingLength(String s)


Copyright © 2011 The Codehaus. All Rights Reserved.