diff options
author | Dan Davison <dandavison7@gmail.com> | 2019-07-18 00:00:39 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2019-07-18 00:15:18 -0400 |
commit | 36dda02d8b37e424134eb6b6685f8566c8213ca3 (patch) | |
tree | f6c24e9a82444705e3d53d97a9af574c53809769 /src/paint.rs | |
parent | 62fb930313675f83a010b8a20a4f48cf7a05615b (diff) |
Add option to show command-line arguments for current colors
Diffstat (limited to 'src/paint.rs')
-rw-r--r-- | src/paint.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/paint.rs b/src/paint.rs index 8fc4c011..feb2efa7 100644 --- a/src/paint.rs +++ b/src/paint.rs @@ -152,8 +152,8 @@ impl<'a> Painter<'a> { } } -/// Write text to buffer with color escape codes. -fn paint_text(text: &str, style: Style, output_buffer: &mut String) -> std::fmt::Result { +/// Write section text to buffer with color escape codes. +pub fn paint_text(text: &str, style: Style, output_buffer: &mut String) -> std::fmt::Result { use std::fmt::Write; match style.background { style::NO_COLOR => (), |