Created
August 28, 2018 15:30
-
-
Save chuangzhu/611e80181a4381fdaaad7b1fcd074a2a to your computer and use it in GitHub Desktop.
Shell color cheatsheet.
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
#!/usr/bin/python | |
from __future__ import print_function | |
print() | |
for i in range(0, 10): | |
print(i, end=' ') | |
print('\033[{}m'.format(i), end='') | |
print('AaBbCcDdEeFfGg', end='') | |
print('\033[0m') | |
print() | |
for i in range(30, 40): | |
print(i, end=' ') | |
print('\033[{}m'.format(i), end='') | |
print('AaBbCcDdEeFfGg', end='') | |
print('\033[0m') | |
print() | |
for i in range(40, 50): | |
print(i, end=' ') | |
print('\033[{}m'.format(i), end='') | |
print('AaBbCcDdEeFfGg', end='') | |
print('\033[0m') | |
print() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(#5 is blinking...)