antex 0.2.1

Styled text and tree in terminal
Documentation

antex

crates.io coverage
build Linux build Windows build macOs build macOs arm64
mit-license apache-license cc
mbh es

Styled text and tree in terminal

Overview

antex is a lightweight Rust library for building styled text and hierarchical tree structures in terminal applications. antex provides simple, expressive tools for formatting text with colors and styles, and for rendering clean, readable tree views in command-line interfaces. antex is perfect for developer tools that leverage rich, colored terminal output to improve clarity, structure, and user experience, without pulling in heavy UI frameworks.

Key features:

  • styled terminal text with color and formatting support,
  • colored, structured tree views for hierarchical data,
  • clean and visually appealing console output,
  • developer-friendly APIs for building styled output programmatically,
  • lightweight and idiomatic Rust design.

Usage

use antex::{StyledText, Text};

fn main() {
  let greeting = Text::auto().yellow().s("Hello")
                             .reset().s(' ')
                             .green().s("world")
                             .reset().s('!');
  println!("{}", greeting);
}

License

Licensed under either of

at your option.

Contribution

Any contributions to antex are greatly appreciated. All contributions intentionally submitted for inclusion in the work by you, shall be dual licensed as above, without any additional terms or conditions.