mirror of
https://github.com/anas-elgarhy/JColorfulConsole.git
synced 2024-08-14 23:57:19 +00:00
18 lines
451 B
Markdown
18 lines
451 B
Markdown
|
## JColorfulConsole
|
||
|
|
||
|
### JColorfulConsole is a console color library.
|
||
|
|
||
|
|
||
|
### Features:
|
||
|
- Support text color.
|
||
|
- Support background color.
|
||
|
- Support text style.
|
||
|
|
||
|
### Usage:
|
||
|
```java
|
||
|
ConsoleManager manager = new DefaultConsoleManager(); // Create a new console manager
|
||
|
manager.setTextColor(Color.RED); // Set text color
|
||
|
manager.setBackgroundColor(Color.BLUE); // Set background color
|
||
|
|
||
|
manager.println("Hello World!"); // Print text
|
||
|
```
|