Created
July 17, 2020 14:46
-
-
Save christianparpart/a69e9a707204ddb297ded2bffeb4cfa6 to your computer and use it in GitHub Desktop.
Tiny script for showing / testing underline / grid cell decorations in terminal emulators.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
function ul_color1() { | |
echo -ne "\033[58:2:255:250:32m" | |
} | |
function ul_color2() { | |
echo -ne "\033[58:2:255:32:32m" | |
} | |
function ul_color3() { | |
echo -ne "\033[58:2:32:255:32m" | |
} | |
ul_color1 | |
echo -ne "\033[4m Underline Normal As Usual\033[mEnd\n" | |
ul_color2 | |
echo -ne "\033[21m Underline $(ul_color3)Doubly As Usual\033[mEnd\n" | |
for i in 0 1 2 3 4 5 6; do | |
echo -ne "\033[58:2:250:250:70m" | |
echo -ne "\033[4:${i}m Underline ${i} \033[mEnd\n" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment