From 749ef303695d1633bac01e2e9ddbf02a54bfdfda Mon Sep 17 00:00:00 2001 From: Namilskyy Date: Thu, 20 Nov 2025 21:15:59 +0300 Subject: Expiremental fixes for colors in ASCII art --- src/parser.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/parser.rs') diff --git a/src/parser.rs b/src/parser.rs index ab1db94..6b9107d 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -157,7 +157,13 @@ fn load_arts() -> Result> { } fn process_placeholders(art: &str) -> String { - art.replace("{0}", "") + let strart = art.to_string(); + let mut processed_art = strart.replace("{0}", " ") + .replace("", "\x1b[0;33m") + .replace("", "\x1b[0;34m") + .replace("", "\x1b[0;35m") + .replace("", "\x1b[0m"); + processed_art } /// Choosing and retuns art (String) -- cgit v1.2.3