public final class Ansi8BitColor extends Object implements AnsiElement
AnsiElement implementation for ANSI 8-bit foreground or background color codes.foreground(int),
background(int)| Modifier and Type | Method and Description |
|---|---|
static Ansi8BitColor |
background(int code)
Return a background ANSI color code instance for the given code.
|
boolean |
equals(Object obj) |
static Ansi8BitColor |
foreground(int code)
Return a foreground ANSI color code instance for the given code.
|
int |
hashCode() |
String |
toString() |
public String toString()
toString in interface AnsiElementtoString in class Objectpublic static Ansi8BitColor foreground(int code)
code - the color codepublic static Ansi8BitColor background(int code)
code - the color codeCopyright © 2021 Pivotal Software, Inc.. All rights reserved.