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.

Original post →

More from coding & agent

coding & agent channel →