Skip to content

Instantly share code, notes, and snippets.

@mekb-turtle
Created April 17, 2023 04:26
Show Gist options
  • Save mekb-turtle/d5ef4c3c98759612cf65ddd23e3e19c5 to your computer and use it in GitHub Desktop.
Save mekb-turtle/d5ef4c3c98759612cf65ddd23e3e19c5 to your computer and use it in GitHub Desktop.
preview minecraft colours in terminal
#!/usr/bin/bash
echo -e ' \x1b[48;5;15;38;2;0;0;0mblack\x1b[0m - &0 - §0 - \\u00a70 '
echo -e ' \x1b[48;5;15;38;2;0;0;170mdark_blue\x1b[0m - &1 - §1 - \\u00a71 '
echo -e ' \x1b[48;5;15;38;2;0;170;0mdark_green\x1b[0m - &2 - §2 - \\u00a72 '
echo -e ' \x1b[48;5;15;38;2;0;170;170mdark_aqua\x1b[0m - &3 - §3 - \\u00a73 '
echo -e ' \x1b[48;5;15;38;2;170;0;0mdark_red\x1b[0m - &4 - §4 - \\u00a74 '
echo -e ' \x1b[48;5;15;38;2;170;0;170mdark_purple\x1b[0m - &5 - §5 - \\u00a75 '
echo -e ' \x1b[48;5;15;38;2;255;170;0mgold\x1b[0m - &6 - §6 - \\u00a76 '
echo -e ' \x1b[38;2;170;170;170mgray\x1b[0m - &7 - §7 - \\u00a77 '
echo -e ' \x1b[48;5;15;38;2;85;85;85mdark_gray\x1b[0m - &8 - §8 - \\u00a78 '
echo -e ' \x1b[38;2;85;85;255mblue\x1b[0m - &9 - §9 - \\u00a79 '
echo -e ' \x1b[38;2;85;255;85mgreen\x1b[0m - &a - §a - \\u00a7a '
echo -e ' \x1b[38;2;85;255;255maqua\x1b[0m - &b - §b - \\u00a7b '
echo -e ' \x1b[38;2;255;85;85mred\x1b[0m - &c - §c - \\u00a7c '
echo -e ' \x1b[38;2;255;85;255mlight_purple\x1b[0m - &d - §d - \\u00a7d '
echo -e ' \x1b[38;2;255;255;85myellow\x1b[0m - &e - §e - \\u00a7e '
echo -e ' \x1b[38;2;255;255;255mwhite\x1b[0m - &f - §f - \\u00a7f '
echo
echo -e ' \x1b[8mobfuscated\x1b[0m - &k - §k - \\u00a7k '
echo -e ' \x1b[1mbold\x1b[0m - &l - §l - \\u00a7l '
echo -e ' \x1b[9mstrikethrough\x1b[0m - &m - §m - \\u00a7m '
echo -e ' \x1b[4munderline\x1b[0m - &n - §n - \\u00a7n '
echo -e ' \x1b[3mitalic\x1b[0m - &o - §o - \\u00a7o '
echo -e ' \x1b[0mreset\x1b[0m - &r - §r - \\u00a7r '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment