Inksac
Inksac is a Rust library that amplifies terminal outputs by offering a seamless integration with ANSI color support. It is devised to be uncomplicated, flexible, and delightful to utilize, adding a splash of color to your terminal applications.
Features
-
Check ANSI Color Support: Before painting your terminal with vibrant colors, ascertain if the current terminal supports ANSI colors using Inksac's built-in function.
-
Customizable Styles: Inksac allows the creation of distinct text styles with customizable foreground and background colors, giving a personal touch to your terminal display.
-
Vivid Text Outputs: Enrich your terminal applications with colorful text outputs using the
ColoredStringstructure. -
True Color Support: Experience the diversity of colors with Inksac supporting true color by RGB and HEX values.
-
Text Format Options: Beautify your text with bold, dim, italic, underline formats. Stay tuned for more format options in future releases.
Usage
Here is a basic example demonstrating how to utilize the Inksac crate:
use is_color_available;
use ;
Installation
To add Inksac as a dependency to your project, run the following command:
Disclaimer
Please note that the actual color representation may vary based on the terminal's capabilities and might not function as anticipated on all platforms.
Happy Coding!