From 9806281ebec96854dbd74d45c3c3716c612e0ef3 Mon Sep 17 00:00:00 2001 From: pierresy Date: Sun, 14 Feb 2016 15:47:29 +0100 Subject: Detect if attached to a tty standard output when calling Table.printstd(). Printing using term (for colors, etc...) is performed only if output is a tty, else, fallbacks to normal printing --- src/format.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/format.rs') diff --git a/src/format.rs b/src/format.rs index c4b874e..c9546b7 100644 --- a/src/format.rs +++ b/src/format.rs @@ -197,7 +197,7 @@ impl Default for TableFormat { } } -/// A builder to create a `Table Format` +/// A builder to create a `TableFormat` pub struct FormatBuilder { format: Box } -- cgit v1.2.3