Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/painting/painter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,12 @@ impl Painter {
use_ansi_coloring: bool,
cursor_config: &Option<CursorConfig>,
) -> Result<()> {
// Reset any ANSI styling that may have been left by external commands
// This ensures the prompt is not affected by previous output styling
self.stdout
.queue(SetAttribute(Attribute::Reset))?
.queue(ResetColor)?;

self.stdout.queue(cursor::Hide)?;

let screen_width = self.screen_width();
Expand Down