public final class Ansi8BitColor extends Object implements AnsiElement
来自Spring Boot
foreground(int)
,
background(int)
Modifier and Type | Method and Description |
---|---|
static Ansi8BitColor |
background(int code)
背景色ANSI颜色实例
|
boolean |
equals(Object obj) |
static Ansi8BitColor |
foreground(int code)
前景色ANSI颜色实例
|
int |
getCode()
获取颜色代码(0-255)
|
int |
hashCode() |
String |
toString() |
public static Ansi8BitColor foreground(int code)
code
- 颜色代码(0-255)public static Ansi8BitColor background(int code)
code
- 颜色代码(0-255)public int getCode()
getCode
in interface AnsiElement
public String toString()
toString
in interface AnsiElement
toString
in class Object
Copyright © 2025. All rights reserved.