Skip to content

fix(statusline): render ⛏ correctly on Windows, add spacing#459

Open
luojeffery wants to merge 1 commit into
JuliusBrussee:mainfrom
luojeffery:fix/statusline-windows-encoding
Open

fix(statusline): render ⛏ correctly on Windows, add spacing#459
luojeffery wants to merge 1 commit into
JuliusBrussee:mainfrom
luojeffery:fix/statusline-windows-encoding

Conversation

@luojeffery
Copy link
Copy Markdown

Summary

  • Set [Console]::OutputEncoding = UTF8 in caveman-statusline.ps1 so ⛏ (U+26CF) renders instead of garbled bytes on Windows (PS5.1 defaults to system code page)
  • Add -Encoding UTF8 to Get-Content so the suffix file is read correctly
  • Add a second space between ⛏ and the token count for visual breathing room

Test plan

  • Run /caveman-stats after install
  • Statusline shows [CAVEMAN] ⛏ 12.4k with visible space between pickaxe and number
  • No garbled characters on Windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant