https://github.com/massimo-rnd/clilib-legacy
clilib legacy - get some colors into your command line applications (Java 1.8)
https://github.com/massimo-rnd/clilib-legacy
color-library colors commandline commandline-interface java library
Last synced: 2 months ago
JSON representation
clilib legacy - get some colors into your command line applications (Java 1.8)
- Host: GitHub
- URL: https://github.com/massimo-rnd/clilib-legacy
- Owner: massimo-rnd
- License: mit
- Archived: true
- Created: 2024-08-28T07:54:45.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-11-16T10:19:24.000Z (7 months ago)
- Last Synced: 2025-04-23T09:52:46.975Z (2 months ago)
- Topics: color-library, colors, commandline, commandline-interface, java, library
- Language: Java
- Homepage: https://kaleidolib.xyz
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Important Notice
Please note that the development of this codebase has been surpassed by [JKaleidolib](https://github.com/massimo-rnd/jkaleidolib). As a result, clilib should be regarded as outdated since this code is not receiving any updates.[JKaleidolib](https://github.com/massimo-rnd/jkaleidolib) offers the extended functionality and will be maintained for future java versions,
![]()








clilib-legacy
clilib is a java(1.8) library providing different style additions for command line applications. This might sound pretty useless in the first place (probably because it is), but there might be some cases, where colors actually come in handy.
---
## Table of Contents
- [About](#about)
- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Contributing](#contributing)
- [License](#license)
- [Contact](#contact)---
## About
clilib-legacy is a java library providing different style additions for command line applications. This might sound pretty useless in the first place (probably because it is), but there might be some cases, where colors actually come in handy.
---
## Features
- ✅ Colors for Text in your CLI-Application
- ✅ Textstyles for Text in your CLI-Application
- ✅ Wrapper-Methods for easy usage---
## Installation
### Download the latest version
To start off, please head to the [releases page](https://github.com/massimo-rnd/clilib-legacy/releases) and download a pre-built jar.
*If you don't trust me for some reason, feel free to download the latest released source code and build it your self.*
### Import the library to your IDE/project
This process depends on the IDE, so just do it as it is done with your's.
---
## Usage
### Using colors
Colors can be used like this:```java
System.out.println(TextColors.red + "Look at what I can do!" + TextColors.reset);
System.out.println(TextColors.bgred + "Look at what I can do!" + TextColors.reset);
```### Using styles
Styles can be used like this:```java
System.out.println(TextStyles.bold + "Look at what I can do!" + TextStyles.reset);
System.out.println(TextColors.underline + "Look at what I can do!" + TextColors.reset);
```### Alternatively, you can use Clilib's wrapper methods:
Colors:
```java
System.out.println(Color.blue("Ciao!"));
```Backgrounds:
```java
System.out.println(Background.red("Sain bainuu!"));
```Formatting:
```java
System.out.println(Formatting.bold("Halo!"));
```Lining:
```java
System.out.println(Lining.underline("Silaw!"));
```This way, you can combine several stylings at once very easily:
```java
System.out.println(Background.green(Lining.underline(Color.blue("Ndêwó!"))));
System.out.println(Lining.strikethrough(Color.purple("Yassou!")));
```---
## Contributing
Contributions are welcome! Please follow these steps:
1. Fork the repository
2. Create a new branch (`git checkout -b feature-name`)
3. Commit your changes (`git commit -m 'Add some feature'`)
4. Push to the branch (`git push origin feature-name`)
5. Open a pull request---
## License
This project is licensed under the [MIT License](LICENSE).
---
## Contact
- **massimo-rnd** - [@massimo_rnd](https://x.com/massimo_rnd) - [email protected]
- **Project Link** - https://github.com/massimo-rnd/clilib-legacyFeel free to reach out if you have any questions or suggestions!