From 8e9e6ef30eae74e58290d46f784ec99e437ff294 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Sun, 25 Jun 2023 12:40:48 +0200 Subject: [PATCH] Add test-term script --- bin/test-term.sh | 169 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 169 insertions(+) create mode 100755 bin/test-term.sh diff --git a/bin/test-term.sh b/bin/test-term.sh new file mode 100755 index 0000000..2b49fc6 --- /dev/null +++ b/bin/test-term.sh @@ -0,0 +1,169 @@ +echo -e '\e[0mnormal\e[0m' +echo -e '\e[2mdim\e[0m' + +echo -e '\e[1mbold\e[0m' + +echo -e '\e[3mitalic\e[0m' +echo -e '\e[2;3mdim italic\e[0m' +echo -e '\e[1;3mbold italic\e[0m' + +echo +echo -e '\e[4munderline\e[24m' +echo -e '\e[3;4mitalic underline\e[0m' +echo -e '\e[4:1mthis is also underline \e[4:0m' +echo -e '\e[21mdouble underline \e[24m' +echo -e '\e[4:2mthis is also double underline \e[4:0m' +echo -e '\e[4:3mcurly underline \e[4:0m' +echo -e '\e[21m\e[58;5;42m256-color underline \e[59m\e[24m' +echo -e '\e[4:3m\e[58;2;240;143;104mtruecolor underline (*)\e[59m\e[4:0m' +echo -e "\x1b[58:2::255:0:0m\x1b[4:1msingle underline \x1b[0m" +echo -e "\x1b[4:2mdouble underline \x1b[58:2::255:0:0m and with color\x1b[0m" +echo -e "\x1b[4:3mcurly underline \x1b[58:2::255:0:0m and with color\x1b[0m" +echo -e "\x1b[4:4mdotted underline \x1b[58:2::255:0:0m and with color\x1b[0m" +echo -e "\x1b[4:5mdashed underline \x1b[58:2::255:0:0m and with color\x1b[0m" + + + +echo +echo -e '\e[7mreverse\e[27m' +echo -e '\e[7;1mreverse bold\e[0m' +echo -e '\e[7;3mreverse italic\e[0m' +echo -e '\e[7;2mreverse dim\e[0m' +echo -e '\e[7;2;1mreverse dim italic\e[0m' + +echo +echo -e '\e[5mblink \e[25m' +echo -e '\e[8minvisible\e[28m <- invisible (but copy-pasteable)' +echo -e '\e[9mstrikethrough\e[29m' +echo -e '\e[53moverline \e[55m' +echo -e '\e[51mframed \e[0m' +echo -e '\e[52mencircled \e[0m' + +echo -e '\e[31mred\e[39m' +echo -e '\e[91mbright red\e[39m' +echo -e '\e[38:5:42m256-color, de jure standard (ITU-T T.416)\e[39m' +echo -e '\e[38;5;42m256-color, de facto standard (commonly used)\e[39m' +echo -e '\e[38:2::240:143:104mtruecolor, de jure standard (ITU-T T.416) \e[39m' +echo -e '\e[38;2;240;143;104mtruecolor, de facto standard (commonly used)\e[39m' + +echo -e '\e[46mcyan background\e[49m' +echo -e '\e[106mbright cyan background\e[49m' +echo -e '\e[48:5:42m256-color background, de jure standard (ITU-T T.416)\e[49m' +echo -e '\e[48;5;42m256-color background, de facto standard (commonly used)\e[49m' +echo -e '\e[48:2::240:143:104mtruecolor background, de jure standard (ITU-T T.416) \e[49m' +echo -e '\e[48:2:240:143:104mtruecolor background, rarely used incorrect format (might be removed at some point)\e[49m' +echo -e '\e[48;2;240;143;104mtruecolor background, de facto standard (commonly used)\e[49m' + + +echo +echo "Emoji: 🚀 💩 😁 🍖 🔥 🔷" + +echo +echo "Ligatures:" +echo "-<< -< -<- <-- <--- <<- <- -> ->> --> ---> ->- >- >>- <-> <--> <---> <---->