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

Character is only partially colored in Windows Terminal (Powershell (core)) #6462

Open
petterhoel opened this issue Jan 2, 2025 · 0 comments
Labels
🐛 bug Something isn't working as expected.

Comments

@petterhoel
Copy link

petterhoel commented Jan 2, 2025

Current Behavior

Character is only partially colored in Windows Terminal (Powershell (core)). It does not happen with all characters, only 1 and 3 (numbers refer to screenshot), of the ones I tried. Same config works as expected in ghostty on my mac.

Expected Behavior

Character is fully colored.

Additional context/Screenshots

image

Environment

  • Starship version: 1.21.1
  • pwsh version: PowerShell 7.4.6
  • Operating system: Windows 10.0.22631
  • Terminal emulator: Windows Terminal 1.21.3231.0
  • Git Commit Hash: 47ccc36
  • Branch/Tag: master
  • Rust Version: rustc 1.82.0 (f6e511eec 2024-10-15)
  • Rust channel: stable-x86_64-pc-windows-msvc release
  • Build Time: 2024-10-18 16:32:39 +00:00

Relevant Shell Configuration

Invoke-Expression (&starship init powershell)

Starship Configuration

# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'


[character] 
success_symbol = '[➜](bold green)' 
error_symbol = '[💀](bold red)'

[package]
disabled = true

#  
# configure directory
[directory]
style = 'blue bold'

[cmd_duration]
min_time = 50
show_milliseconds = true
style = 'foreground'

[git_status]
format = '([\[$all_status$ahead_behind\]]($style) )'
stashed = "[${count}*](green)"
modified = "[${count}+](yellow)"
deleted =  "[${count}-](red)"
conflicted =  "[${count}~](red)"
ahead = "⇡${count}"
behind = "⇣${count}"
untracked = "[${count}?](blue)"
staged = "[${count}+](green)"

[git_state]
style =	"bold red"
format = "[$state( $progress_current/$progress_total) ]($style)"
rebase = "rebase"
merge = "merge"
revert = "revert"
cherry_pick = "cherry"
bisect = "bisect"
am = "am"
am_or_rebase = "am/rebase"

[nodejs]
format = "[$symbol($version )]($style)"
@petterhoel petterhoel added the 🐛 bug Something isn't working as expected. label Jan 2, 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.
Projects
None yet
Development

No branches or pull requests

1 participant