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.
This commit is contained in:
Niko Marmeladkov 2026-07-16 13:10:55 +03:00
parent 2ce7c3688c
commit 21fc895b0e
Signed by untrusted user who does not match committer: Niko
GPG key ID: E3B955F9442D44E3

View file

@ -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);