From 0e8cb304a506ee3549ea8f3b7103b35a890b1ca1 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Tue, 4 Jul 2023 14:09:28 +0300 Subject: [PATCH] [Terminal Output] Reset text properties after `print_rich`. --- core/string/print_string.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/string/print_string.cpp b/core/string/print_string.cpp index 7b90710308c..dcdde3c1754 100644 --- a/core/string/print_string.cpp +++ b/core/string/print_string.cpp @@ -164,6 +164,8 @@ void __print_line_rich(String p_string) { p_string_ansi = p_string_ansi.replace("[/fgcolor]", "\u001b[39;49m"); } + p_string_ansi += "\u001b[0m"; // Reset. + OS::get_singleton()->print_rich("%s\n", p_string_ansi.utf8().get_data()); _global_lock();