jline
Class ANSIBuffer
java.lang.Object
jline.ANSIBuffer
- public class ANSIBuffer
- extends Object
A buffer that can contain ANSI text.
- Author:
- Marc Prud'hommeaux
ANSIBuffer
public ANSIBuffer()
ANSIBuffer
public ANSIBuffer(String str)
setAnsiEnabled
public void setAnsiEnabled(boolean ansi)
getAnsiEnabled
public boolean getAnsiEnabled()
getAnsiBuffer
public String getAnsiBuffer()
getPlainBuffer
public String getPlainBuffer()
toString
public String toString(boolean ansi)
toString
public String toString()
append
public ANSIBuffer append(String str)
attrib
public ANSIBuffer attrib(String str,
int code)
red
public ANSIBuffer red(String str)
blue
public ANSIBuffer blue(String str)
green
public ANSIBuffer green(String str)
black
public ANSIBuffer black(String str)
yellow
public ANSIBuffer yellow(String str)
magenta
public ANSIBuffer magenta(String str)
cyan
public ANSIBuffer cyan(String str)
bold
public ANSIBuffer bold(String str)
underscore
public ANSIBuffer underscore(String str)
blink
public ANSIBuffer blink(String str)
reverse
public ANSIBuffer reverse(String str)
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Released under the terms of the BSD license