🖥️ Cirious Codex Term
Native ANSI Terminal Control & Formatting
📖 Overview
Cirious Codex Term is a highly optimized, dependency-free foundational library for terminal manipulation. It provides native ANSI escape sequence generation for colors, text styling, and full cursor control.
Designed to be the ultimate bedrock for CLI tools within the Cirious ecosystem, prioritizing zero-cost abstractions and flawless terminal integration.
✨ Features
- Core color manipulation (16 colors, 256 colors, TrueColor RGB).
- Text formatting traits (Bold, Italic, Blink, Dim, etc.).
- Absolute and relative cursor positioning.
- Screen manipulation and clearing.
🚀 Quick Start
Add the following to your Cargo.toml:
[]
= "0.1"
And then in your code:
use ;
🚧 Current Status & Roadmap
The architecture is currently being mapped out for the upcoming v0.2 release:
- Windows ANSI: Auto-enable native ANSI support on Windows.
- Terminal Dimensions: Methods to query terminal width and height dynamically.
- Raw Mode Toggle: Ability to switch the terminal to raw mode for unbuffered, character-by-character input reading.
- NO_COLOR Standard: Automatic respect for the
NO_COLORenvironment variable to disable styling dynamically. - Async Key Events: Foundational support for reading non-blocking keyboard and mouse events.
📜 License
Licensed under either of the following, at your option: