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:
parent
2ce7c3688c
commit
21fc895b0e
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue