Cliux — styled terminal output made simple

⚓ Rust    📅 2025-10-31    👤 surdeus    👁️ 6      

surdeus

Warning

This post was published 32 days ago. The information described in this article may have changed.

cliux is a lightweight Rust crate for styling terminal output — no TUI required. It’s a toolkit for making CLI output look clean, expressive, and readable using structured components.

I built cliux because the output in one of my Rust projects felt flat and hard to scan. So I created a crate that adds layout and clarity without needing a full TUI framework.

Features

  • Boxed — bordered containers with titles and content
  • Section — titled blocks with horizontal dividers
  • Divider — customizable horizontal lines
  • .wrap() — wraps long text to fit the width
  • .pad() — emoji-aware padding for alignment

Example

use cliux::Boxed;

fn main() {
    Boxed::new("Cliux Boxed")
        .content("This code uses the cliux library to create a boxed section.")
        .width(61)
        .print();
}

Output:

Boxed component

Links

Github Repo
Crates.io

Any feedback, ideas, or contributions are welcome!

2 posts - 1 participant

Read full topic

🏷️ Rust_feed