Skip to content

Instantly share code, notes, and snippets.

@howie
Last active October 6, 2025 02:41
Show Gist options
  • Select an option

  • Save howie/618db1230261d66a87839528eee743ab to your computer and use it in GitHub Desktop.

Select an option

Save howie/618db1230261d66a87839528eee743ab to your computer and use it in GitHub Desktop.
statusline-wrapper.sh
#!/bin/zsh
# Wrapper script to properly handle ANSI escape codes for Claude Code statusline
# Calls the Go binary with JSON input and ensures ANSI codes are interpreted correctly
# Execute the Go statusline binary with JSON input and use printf to interpret ANSI codes
printf "%b" "$(cat | "$HOME/.claude/statusline-go")"
@howie
Copy link
Author

howie commented Oct 6, 2025

Claude code statusline wrap

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