Hacking the shell prompt with custom color fonts: pixel art to sbix/COLR via private-use Unicode
4310sy · x · 2026-12-01
Japanese engineer mimifuwa's Advent Calendar writeup: replace the boring shell prompt with a pet character. Steps: draw pixel art (.bmp), have AI write a Python script (Pillow + fontTools) to convert it into a color TrueType font carrying both sbix (for Ghostty) and COLR/CPAL tables, and assign glyphs to private-use codepoints U+100000/U+100001 — deliberately avoiding U+E000+ because Ghostty applies Nerd Fonts display constraints there. Success/error states swap glyphs.
More from coding & agent
- Free open-source course AI Engineering from Scratch turns your coding agent into a tutor — ghumare64 · 2026-12-01
- OpenAI Codex can now use a browser and desktop in Codex Cloud to build and test features — OpenAIDevs · 2026-12-01
- Claude Code 2.1.333 ships 67 flag changes, adds per-agent workflow stops and REVIEW.md — ClaudeCodeLog · 2026-12-01
- Agentic holiday shopping spend jumps 52%, electronics drive a fifth of growth — jeff_weinstein · 2026-12-01
- Zero-human robot calibration: Claude workflow cuts ray error from 1.2° to 0.10° — DominiqueCAPaul · 2026-12-01
- Temporal partners with NVIDIA, Cursor, Pydantic AI on durable execution for agents — samuelcolvin · 2026-12-01