Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WezTerm: 'inverted' style with bg incorrectly sets bg to black #6633

Open
ShojiHorikawa opened this issue Mar 18, 2025 · 1 comment
Open
Labels
🐛 bug Something isn't working as expected. 🌊 upstream Depends on an upstream solve beyond starship

Comments

@ShojiHorikawa
Copy link

Bug Report

Current Behavior

When using the inverted style with bg:none in WezTerm, the background color is incorrectly set to black instead of remaining transparent.

Expected Behavior

The background should remain transparent when using bg:none with the inverted style.

Additional context/Screenshots

This issue does not occur in other terminal emulators such as VSCode and iTerm2. Below are screenshots for comparison:

wezterm
Image

vscode
Image

iterm
Image

Possible Solution

No specific solution has been identified yet, but it may involve adjusting how WezTerm handles the inverted style with transparent backgrounds.

Environment

Starship version: 1.22.1

Terminal emulator:
WezTerm: 20250301-123420-7d0bff06
vscode: 1.98.2
iTerm2: 3.5.11

OS ProductVersion: 14.7.1

[character]
format = """
[](inverted fg:#FF2079)\
$directory\
"""
@ShojiHorikawa ShojiHorikawa added the 🐛 bug Something isn't working as expected. label Mar 18, 2025
@davidkna
Copy link
Member

Starship prints the ANSI escape for inverted verbatim, and the way it is handled is left to the terminal application. That said, it might be useful to add this to the list of warnings regarding non-universal support for some style directives in the advanced config section of the documentation.

@davidkna davidkna added the 🌊 upstream Depends on an upstream solve beyond starship label Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working as expected. 🌊 upstream Depends on an upstream solve beyond starship
Projects
None yet
Development

No branches or pull requests

2 participants