Skip to content

Text has ANSI styling (no reset) before prompt is printed #16384

@davidkna

Description

@davidkna

Describe the bug

Unlike other shells including fish, bash and zsh string in the prompt are colored, because the color is not reset (or set to non-default value).

Image

starship/starship#6560

How to reproduce

starship/starship#6560

Use bare string at the start of the prompt and observe its color.

Expected behavior

Before prompt is printed, color is reset ("\x1b[0m").

Configuration

key value
version 0.106.1
major 0
minor 106
patch 1
branch
commit_hash
build_os macos-aarch64
build_target aarch64-apple-darwin
rust_version rustc 1.88.0 (6b00bc388 2025-06-23) (built from a source tarball)
cargo_version cargo 1.88.0 (873a06493 2025-05-10)
build_time 1980-01-01 00:00:00 +00:00
build_rust_channel release
allocator standard
features default, plugin, rustls-tls, sqlite, trash-support
installed_plugins
experimental_options example=false, reorder-cell-paths=false

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions