irongit
Explore
Docs
Sign in
Register
huncholane
/
hygobin
Public
a bin full of cool programs
Code
Commits
Branches
Tags
main
hygobin
/
bin
/
colors
6 lines
221 B
Raw
Download
History
1
#
!/bin/bash
2
for
i
in
{
0..255
}
;
do
printf
"
\e[38;5;
$
{
i
}
m%4d
"
$
i
;
((
i
%
16
=
=
15
))
&&
echo
"
"
;
done
;
echo
-
e
"
\e[0m
"
3
4
echo
-
e
-
n
"
\e[38;5;243m
"
5
echo
"
Use these colors with
\\
e[38;5;<number>m<message>
\\
e[0m
"
6
echo
-
e
-
n
"
\e[0m
"