mirror of
https://github.com/anas-elgarhy/JColorfulConsole.git
synced 2024-08-14 23:57:19 +00:00
Improve the ASCII color class
This commit is contained in:
parent
610f72bcc7
commit
b50ee59b31
1 changed files with 18 additions and 0 deletions
|
@ -0,0 +1,18 @@
|
||||||
|
package com.anas.jcolorfulconsole.color;
|
||||||
|
|
||||||
|
import com.anas.jcolorfulconsole.ConsoleProperty;
|
||||||
|
|
||||||
|
public class ASCIIColor implements ConsoleProperty {
|
||||||
|
private final short code;
|
||||||
|
|
||||||
|
protected ASCIIColor(short code) {
|
||||||
|
this.code = code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static final ASCIIColor RESET = new ASCIIColor((short)0);
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public short getCode() {
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue