dotfiles/bin/styletest

13 lines
747 B
Bash
Executable file

#!/bin/sh
reset='\e[0m'
printf '%b\n' "\e[1mThis text has the bold (tput bold) attribute.${reset}"
printf '%b\n' "\e[2mThis text has the faint (tput dim) attribute.${reset}"
printf '%b\n' "\e[3mThis text has the italics (tput sitm | tput smso) attribute.${reset}"
printf '%b\n' "\e[4mThis text has the underline (tput smul) attribute.${reset}"
printf '%b\n' "\e[5mThis text has the blink (tput blink) attribute.${reset}"
printf '%b\n' "\e[7mThis text has the reverse (tput rev) attribute.${reset}"
printf '%b\n' "\e[8mThis text has the invisible (tput invis) attribute.${reset}"
printf '%b\n' "\e[9mThis text has the strikethrough (tput ?) attribute.${reset}"
printf '%b\n' "\e[21mThis text has the double underline (tput ?) attribute.${reset}"