This file contains 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
/** | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
This file contains 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 | |
DEFAULT_COLORS=256 | |
COLORS="${1:-DEFAULT_COLORS}" | |
for ((n = 0; n < $COLORS; n++)); do | |
if ((n < 10)); then s=" "; elif ((n < 100)); then s=" "; else s=" "; fi | |
printf " %s[%d] $(tput setaf $n)%s$(tput sgr0)" "$s" $n "▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | |
" | |
done |
This file contains 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/sh | |
echo -e "\e[1mbold\e[0m" | |
echo -e "\e[3mitalic\e[0m" | |
echo -e "\e[3m\e[1mbold italic\e[0m" | |
echo -e "\e[4munderline\e[0m" | |
echo -e "\e[9mstrikethrough\e[0m" | |
echo -e "\e[31mHello World\e[0m" | |
echo -e "\x1B[31mHello World\e[0m" |