ansi4tui 0.1.0

ANSI terminal code to TUI Text Style converter
docs.rs failed to build ansi4tui-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: ansi4tui-0.2.0

ansi4tui

TUI doesn't natively support converting ANSI terminal codes to its own Style abstraction, so this crate provides a simple (and probably naive) conversion method. It has not been rigorously tested.

Example

use std::process::Command;

let c = Command::new("ls")
    .args(&["--color=always", "~"])
    .output()
    .unwrap();

let text = ansi4tui::bytes_to_text(c.stdout);