From 572747398fdd9755a68b4a6df60015100d6f645c Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 29 Aug 2026 17:22:59 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20Highlight=20real-time?= =?UTF-8?q?=20achievement=20celebrations=20and=20prevent=20ANSI=20color=20?= =?UTF-8?q?leaks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add CLR_RESET after mode indicators in src/main.cpp to prevent ANSI color formatting from leaking into achievement text and terminal output. Style real-time achievement messages in celebratory Bold Yellow (CLR_CTRL) with sparkles. Co-authored-by: aidasofialily-cmd <247843425+aidasofialily-cmd@users.noreply.github.com> --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index b9144b7..3e261f6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -144,8 +144,8 @@ int main() { if (updateUI) { std::cout << "\r" ERASE_LINE << CLR_SCORE << "Score: " << formatWithCommas(score) << CLR_RESET << " | High: " << formatWithCommas(highscore) << " " - << (hardMode ? CLR_HARD "[HARD MODE]" : CLR_NORM "[NORMAL MODE]") - << (score > initialHighscore ? " NEW BEST! 🥳 (was " + formatWithCommas(initialHighscore) + ")" : "") + << (hardMode ? CLR_HARD "[HARD MODE]" : CLR_NORM "[NORMAL MODE]") << CLR_RESET + << (score > initialHighscore ? CLR_CTRL " ✨ NEW BEST! 🥳 (was " + formatWithCommas(initialHighscore) + ")" CLR_RESET : "") << std::flush; updateUI = false; }