Skip to content

Instantly share code, notes, and snippets.

View gpupo's full-sized avatar
🎯
Focusing

Gilmar Pupo gpupo

🎯
Focusing
View GitHub Profile
@gpupo
gpupo / 24-bit-truecolor.sh
Last active December 5, 2024 17:11 — forked from weimeng23/24-bit-truecolor.sh
test if your terminal supports 24 bit truecolor
#!/bin/bash
#
# This file echoes four gradients with 24-bit color codes
# to the terminal to demonstrate their functionality.
# The foreground escape sequence is ^[38;2;<r>;<g>;<b>m
# The background escape sequence is ^[48;2;<r>;<g>;<b>m
# <r> <g> <b> range from 0 to 255 inclusive.
# The escape sequence ^[0m returns output to default
SEPARATOR=':'