Skip to content

Instantly share code, notes, and snippets.

@christianparpart
Created July 17, 2020 14:46
Show Gist options
  • Save christianparpart/a69e9a707204ddb297ded2bffeb4cfa6 to your computer and use it in GitHub Desktop.
Save christianparpart/a69e9a707204ddb297ded2bffeb4cfa6 to your computer and use it in GitHub Desktop.
Tiny script for showing / testing underline / grid cell decorations in terminal emulators.
#! /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