jline

Class ANSIBuffer


public class ANSIBuffer
extends java.lang.Object

A buffer that can contain ANSI text.
Author:
Marc Prud'hommeaux

Nested Class Summary

static class
ANSIBuffer.ANSICodes

Constructor Summary

ANSIBuffer()
ANSIBuffer(String str)

Method Summary

ANSIBuffer
append(String str)
ANSIBuffer
attrib(String str, int code)
ANSIBuffer
black(String str)
ANSIBuffer
blink(String str)
ANSIBuffer
blue(String str)
ANSIBuffer
bold(String str)
ANSIBuffer
cyan(String str)
String
getAnsiBuffer()
boolean
getAnsiEnabled()
String
getPlainBuffer()
ANSIBuffer
green(String str)
ANSIBuffer
magenta(String str)
static void
main(String[] args)
ANSIBuffer
red(String str)
ANSIBuffer
reverse(String str)
void
setAnsiEnabled(boolean ansi)
String
toString()
String
toString(boolean ansi)
ANSIBuffer
underscore(String str)
ANSIBuffer
yellow(String str)

Constructor Details

ANSIBuffer

public ANSIBuffer()

ANSIBuffer

public ANSIBuffer(String str)

Method Details

append

public ANSIBuffer append(String str)

attrib

public ANSIBuffer attrib(String str,
                         int code)

black

public ANSIBuffer black(String str)

blink

public ANSIBuffer blink(String str)

blue

public ANSIBuffer blue(String str)

bold

public ANSIBuffer bold(String str)

cyan

public ANSIBuffer cyan(String str)

getAnsiBuffer

public String getAnsiBuffer()

getAnsiEnabled

public boolean getAnsiEnabled()

getPlainBuffer

public String getPlainBuffer()

green

public ANSIBuffer green(String str)

magenta

public ANSIBuffer magenta(String str)

main

public static void main(String[] args)
            throws Exception

red

public ANSIBuffer red(String str)

reverse

public ANSIBuffer reverse(String str)

setAnsiEnabled

public void setAnsiEnabled(boolean ansi)

toString

public String toString()

toString

public String toString(boolean ansi)

underscore

public ANSIBuffer underscore(String str)

yellow

public ANSIBuffer yellow(String str)