From 21fc895b0ef09b5b40419792ed0c354c32b10686 Mon Sep 17 00:00:00 2001 From: Niko Marmeladkov Date: Thu, 16 Jul 2026 13:10:55 +0300 Subject: [PATCH] fix(attach): reset attributes before drawing input line When safe_truncate cuts off \x1b[0m from a colorized log line, the foreground color leaks onto the > prompt. Emit RESET before GRAY_BG to ensure the input line always starts with a clean slate. --- src/attach.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/attach.rs b/src/attach.rs index 016b816..4870a9d 100644 --- a/src/attach.rs +++ b/src/attach.rs @@ -181,6 +181,7 @@ fn draw_all( let visible: String = input.chars().skip(scroll).take(max_visible).collect(); out.push_str(&format!("\x1b[{};1H", rows)); + out.push_str(RESET); out.push_str(GRAY_BG); out.push_str(prompt); out.push_str(&visible);