Column width interaction of ansi_term and tabled crates
The Rust Programming Language Forum
Column width interaction of ansi_term and tabled crates
I've run into a problem formatting terminal output. I'm using the ansi_term and tabled crates together. Here's a minimal example: use ansi_term::Style; use tabled::{Table, Tabled}; #[derive(Tabled)] struct Row { column: String, } fn main() { let normal_text = String::from("Normal text"); let italic_text: String = Style::new().italic().paint("Italicised").to_string(); let rows = vec![Row { column: normal_text }, Row { column: italic_text }]; let table = Table::new(rows); ...
I've run into a problem formatting terminal output. I'm using the ansi_term and tabled crates together. Here's a minimal example: use ansi_term::Style; use tabled::{Table,…
0 comments
No comments yet.