17 releases (5 breaking)

0.6.12 Nov 6, 2021
0.6.11 Oct 28, 2021
0.5.5 Sep 25, 2021
0.4.5 Sep 24, 2021
0.1.1 Sep 15, 2021

#529 in GUI


Used in rsweb

MIT license

21KB
419 lines

btui-rs

beautiful text user interfaces with btui

btui aims to create beautiful, text only and simple user interfaces.

Usage

Add this to your Cargo.toml dependency list:

btui = "0.6.11"

Features

This crate supports some different features:

  • core: coloring and graphical special effects (like underline)
  • linux: extensive support for different linux features (like clear a line/the screen)
  • pbar: create a simple progress bar

lib.rs:

btui

beautiful text user interfaces

with btui you can create beautiful text user interfaces for the terminal. To get started add btui as a dependency to your project:

btui = "0.6.11"

Examples

This is a basic coloring example which will output hello world in red:

use btui::effects::{Color, Special};
use btui::print::{fg, sp};

println!("{}Hello World!{}", fg(Color::Red), sp(Special::Reset));

No runtime deps

Features