aboutsummaryrefslogtreecommitdiff
path: root/ghostty/.local/bin
diff options
context:
space:
mode:
authorHenry J. Webster <hwebs@hwebs.info>2026-07-30 14:30:53 -0500
committerHenry J. Webster <hwebs@hwebs.info>2026-07-30 14:30:53 -0500
commit88cb8db873d3bea8a0e5d38aa71d2a66476d2088 (patch)
treee33517201e856e79853a9d8596d918aae390090b /ghostty/.local/bin
parent3ace77904c4a6e49e1c5651bf24827858bdbd172 (diff)
(ghostty) add entry
Diffstat (limited to 'ghostty/.local/bin')
-rwxr-xr-xghostty/.local/bin/ghostty-colors57
1 files changed, 57 insertions, 0 deletions
diff --git a/ghostty/.local/bin/ghostty-colors b/ghostty/.local/bin/ghostty-colors
new file mode 100755
index 0000000..5d9f223
--- /dev/null
+++ b/ghostty/.local/bin/ghostty-colors
@@ -0,0 +1,57 @@
+#!/usr/bin/env bash
+# Print terminal color palette
+
+echo
+echo "=== Ghostty Color Palette ==="
+echo
+
+# Standard colors (0-7)
+echo "Standard colors (0-7):"
+for i in {0..7}; do
+ printf "\e[48;5;%dm %2d \e[0m" "$i" "$i"
+done
+echo
+
+# Bright colors (8-15)
+echo "Bright colors (8-15):"
+for i in {8..15}; do
+ printf "\e[48;5;%dm %2d \e[0m" "$i" "$i"
+done
+echo
+echo
+
+# Foreground text samples
+echo "Foreground samples:"
+for i in {0..7}; do
+ printf "\e[3%dm Color %d \e[0m" "$i" "$i"
+done
+echo
+for i in {0..7}; do
+ printf "\e[9%dm Bright %d \e[0m" "$i" "$i"
+done
+echo
+echo
+
+# Named colors with descriptions
+echo "Named palette positions:"
+names=("black" "red" "green" "yellow" "blue" "magenta" "cyan" "white")
+for i in {0..7}; do
+ printf "\e[48;5;%dm\e[38;5;15m %-8s \e[0m " "$i" "${names[$i]}"
+ printf "\e[48;5;$((i+8))m\e[38;5;0m bright %-8s \e[0m\n" "${names[$i]}"
+done
+echo
+
+# True color gradient test
+echo "True color gradient test:"
+for r in $(seq 0 8 255); do
+ printf "\e[48;2;%d;0;0m \e[0m" "$r"
+done
+echo
+for g in $(seq 0 8 255); do
+ printf "\e[48;2;0;%d;0m \e[0m" "$g"
+done
+echo
+for b in $(seq 0 8 255); do
+ printf "\e[48;2;0;0;%dm \e[0m" "$b"
+done
+echo