类 Ansi
java.lang.Object
cool.scx.common.util.ansi.Ansi
向控制台打印彩色
- 版本:
- 0.0.1
- 作者:
- scx567888
-
方法概要
修饰符和类型方法说明add(Object o, AnsiElement... ansiElements) ablack(Object o, AnsiElement... ansiElements) 黑色blue(Object o, AnsiElement... ansiElements) 蓝色brightBlack(Object o, AnsiElement... ansiElements) 亮黑色 ( 真的存在这种颜色吗 ?brightBlue(Object o, AnsiElement... ansiElements) 亮蓝色brightCyan(Object o, AnsiElement... ansiElements) 亮青色brightGreen(Object o, AnsiElement... ansiElements) 亮绿色brightMagenta(Object o, AnsiElement... ansiElements) 亮紫色brightRed(Object o, AnsiElement... ansiElements) 亮红色brightWhite(Object o, AnsiElement... ansiElements) 亮白色brightYellow(Object o, AnsiElement... ansiElements) 亮黄色voidclear()清除当前的 所有 语句color(Object o, AnsiElement... ansiElements) 向控制台打印输出 颜色根据内部计数器自动读取cyan(Object o, AnsiElement... ansiElements) 青色defaultColor(Object o, AnsiElement... ansiElements) 默认颜色static Stringencode(AnsiElement element) Encode a singleAnsiElementif output is enabled.green(Object o, AnsiElement... ansiElements) 绿色ln()换行magenta(Object o, AnsiElement... ansiElements) 紫色static Ansiout()out.voidprint()print.voidprint(boolean useAnsi) voidprintln()println.voidprintln(boolean useAnsi) red(Object o, AnsiElement... ansiElements) 红色toString()toString(boolean useAnsi) white(Object o, AnsiElement... ansiElements) 白色yellow(Object o, AnsiElement... ansiElements) 黄色
-
方法详细资料
-
out
out.
- 返回:
- a
Ansiobject
-
encode
Encode a singleAnsiElementif output is enabled.- 参数:
element- the element to encode- 返回:
- the encoded element or an empty string
-
red
红色- 参数:
o- aObjectobject.ansiElements- AnsiElements- 返回:
- Ansi 方便链式调用
-
green
绿色- 参数:
o- aObjectobject.ansiElements- AnsiElements- 返回:
- Ansi 方便链式调用
-
brightCyan
亮青色- 参数:
o- aObjectobject.ansiElements- AnsiElements- 返回:
- Ansi 方便链式调用
-
blue
蓝色- 参数:
o- aObjectobject.ansiElements- AnsiElements- 返回:
- Ansi 方便链式调用
-
cyan
青色- 参数:
o- aObjectobject.ansiElements- AnsiElements- 返回:
- Ansi 方便链式调用
-
brightBlue
亮蓝色- 参数:
o- aObjectobject.ansiElements- AnsiElements- 返回:
- Ansi 方便链式调用
-
brightMagenta
亮紫色- 参数:
o- aObjectobject.ansiElements- AnsiElements- 返回:
- Ansi 方便链式调用
-
brightRed
亮红色- 参数:
o- aObjectobject.ansiElements- AnsiElements- 返回:
- Ansi 方便链式调用
-
brightGreen
亮绿色- 参数:
o- aObjectobject.ansiElements- AnsiElements- 返回:
- Ansi 方便链式调用
-
black
黑色- 参数:
o- aObjectobject.ansiElements- AnsiElements- 返回:
- Ansi 方便链式调用
-
brightBlack
亮黑色 ( 真的存在这种颜色吗 ? )- 参数:
o- aObjectobject.ansiElements- AnsiElements- 返回:
- Ansi 方便链式调用
-
brightYellow
亮黄色- 参数:
o- aObjectobject.ansiElements- AnsiElements- 返回:
- Ansi 方便链式调用
-
yellow
黄色- 参数:
o- aObjectobject.ansiElements- AnsiElements- 返回:
- Ansi 方便链式调用
-
magenta
紫色- 参数:
o- aObjectobject.ansiElements- AnsiElements- 返回:
- Ansi 方便链式调用
-
white
白色- 参数:
o- aObjectobject.ansiElements- AnsiElements- 返回:
- Ansi 方便链式调用
-
brightWhite
亮白色- 参数:
o- aObjectobject.ansiElements- AnsiElements- 返回:
- Ansi 方便链式调用
-
defaultColor
默认颜色- 参数:
o- aObjectobject.ansiElements- AnsiElements- 返回:
- Ansi 方便链式调用
-
ln
换行- 返回:
- a
Ansiobject.
-
color
向控制台打印输出 颜色根据内部计数器自动读取 -
add
a- 参数:
o- aansiElements- a- 返回:
- a
-
print
public void print()print.
-
print
public void print(boolean useAnsi) -
toString
-
toString
-
clear
public void clear()清除当前的 所有 语句 -
println
public void println()println.
-
println
public void println(boolean useAnsi)
-