Skip to content

Instantly share code, notes, and snippets.

@benmezger
Created September 8, 2016 12:53
Show Gist options
  • Save benmezger/ad6a29b18344a0370d924b4e462fd593 to your computer and use it in GitHub Desktop.
Save benmezger/ad6a29b18344a0370d924b4e462fd593 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
fg = '\033[38;5;'
bg = '\033[48;5;'
for i in range( 0, 256):
n = str(i)
fgstr = fg + n + 'm' + n
bgstr = bg + n + 'm' 'XXXXX'
print fgstr, bgstr, '\033[0m'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment