Skip to content

Instantly share code, notes, and snippets.

@siiky
Created November 3, 2016 22:01
Show Gist options
  • Save siiky/1addbe94d59c20af04087cdb71ff2530 to your computer and use it in GitHub Desktop.
Save siiky/1addbe94d59c20af04087cdb71ff2530 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
# Display the colors available in a terminal.
for color in range(0, 256):
for i in range(0, 1):
print("\033[38;5;%sm%03s\033[m" % (str(color), str(color)), end=' ')
if color % 10 == 0:
print()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment