Last active
April 18, 2017 05:25
-
-
Save Hanaasagi/ed6ab4d57e2b2ce3715a2b4c6c8af963 to your computer and use it in GitHub Desktop.
list all colors combination in terminal
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
for color in itertools.product([x for x in range(30, 38)], [y for y in range(40, 48)]): | |
print('\x1b[{0}m\x1b[{1}m{0}{1}\x1b[0m'.format(*color)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment