You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Text has ANSI styling (no reset) before prompt is printed #16384
Activity
fdncred commentedon Aug 7, 2025
Yup, I've seen this before. Sorry. Definitely a bug. I think it's in reedline somewhere.
ysthakur commentedon Aug 7, 2025
Seems like we simply have to print an ANSI reset before printing the rest of the prompt? Should be a very easy fix.
The prompt is printed around here in Reedline, if anyone wants to give it a go: https://github.com/nushell/reedline/blob/main/src/painting/painter.rs#L256
AnandajithS commentedon Aug 8, 2025
Hi. I would like to work on this issue
fdncred commentedon Aug 8, 2025
go for it. thanks!
davidkna commentedon Aug 10, 2025
Per a report on the starship discord, this also appears to be an issue with right prompts.
AnandajithS commentedon Sep 16, 2025
The issue seems to be that the DEFAULT_PROMPT_COLOR defined in https://github.com/nushell/reedline/blob/main/src/prompt/base.rs#L12 where it is set to Green. By changing it like this
pub static DEFAULT_PROMPT_COLOR: Color = Color::Reset;,the colors are reset and the prompt inherits the terminal's default colors unless configured otherwisefdncred commentedon Sep 16, 2025
Seems plausible. Someone just needs to submit a PR for us to try it out.
fix: reset ANSI styling before printing prompt (#992)
iniw commentedon Feb 18, 2026
Note that starship/starship#6560 is somehow still not fixed even after v0.110.0, which contains nushell/reedline#992
fix: reset ANSI styling before printing prompt (nushell#992)
fix: don't tint unstyled prompts with default colors
fix: don't tint unstyled prompts with default colors
fix(prompt): don't tint a supplied prompt with the default colors (#1…