From 36d041c3c1cf1771fd1dc810de4ea80173a9103d Mon Sep 17 00:00:00 2001 From: Mark Date: Fri, 4 Aug 2023 22:39:36 -0700 Subject: [PATCH] Added more formats --- src/formattedtext.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/formattedtext.rs b/src/formattedtext.rs index b59b4b7..fe19505 100644 --- a/src/formattedtext.rs +++ b/src/formattedtext.rs @@ -77,6 +77,13 @@ impl FormattedText { s.push_str(&format!("{}{}", color::Fg(color::LightBlack), style::Italic)); }, + ('s', ']') => { // Repeat prompt (how => is styled) + s.push_str(&format!("{}{}", color::Fg(color::Magenta), style::Bold)); + }, + ('r', ']') => { // Result prompt (how = is styled) + s.push_str(&format!("{}{}", color::Fg(color::Green), style::Bold)); + }, + _ => { s.push('['); s.push(a);