print your terminal's 16-color ansi palette as a minimal dot swatch.
pal :: terminal palette matrix
ansi black red green yellow blue magenta cyan white
dots ● ○ • ● ○ • ● ○ • ● ○ • ● ○ • ● ○ • ● ○ • ● ○ •
hex #1e1e2e #f38ba8 #a6e3a1 #f9e2af #89b4fa #cba6f7 #89dceb #cdd6f4
bright black red green yellow blue magenta cyan white
dots ● ○ • ● ○ • ● ○ • ● ○ • ● ○ • ● ○ • ● ○ • ● ○ •
hex #585b70 #f38ba8 #a6e3a1 #f9e2af #89b4fa #cba6f7 #89dceb #a6adc8
contrast ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
syntax fn main() { println!("hello %s", "world"); // ok }
make
sudo make installor compile directly:
$(CC) -O2 -std=c99 src/pal.c -o palpal [options] [view...]
ansi— normal 8 ansi colorsbright— bright 8 ansi colorscontrast— contrast check blockssyntax— code samplemini— 2-row dot matrixbar— solid color barhex— raw hex list
-m, --mini— compact dots-b, --bar— color bar-c, --contrast— contrast blocks-s, --simple— skip osc 4 queries-p, --plain— disable ansi escapes (also respectsNO_COLOR)-v, --version— print version-h, --help— print help
hex codes are queried live from the terminal emulator via osc 4.
works in kitty, alacritty, foot, wezterm, and xterm-compatible emulators.
for dumb terminals or multiplexers blocking osc responses, use -s.
mit
