|
|
@ -7,14 +7,15 @@ def colors4():
|
|
|
|
bold_template= "\033[{};{};1m{} The quick brown fox jumps over the lazy dog"
|
|
|
|
bold_template= "\033[{};{};1m{} The quick brown fox jumps over the lazy dog"
|
|
|
|
for color in range(40, 48):
|
|
|
|
for color in range(40, 48):
|
|
|
|
print(seq_template.format(30, color, color) + bar + default)
|
|
|
|
print(seq_template.format(30, color, color) + bar + default)
|
|
|
|
|
|
|
|
print()
|
|
|
|
print("4 Bit foreground colors Bold")
|
|
|
|
print("4 Bit foreground colors Bold")
|
|
|
|
seq_template += " The quick brown fox jumps over the lazy dog "
|
|
|
|
seq_template += " The quick brown fox jumps over the lazy dog "
|
|
|
|
for color in range(30, 38):
|
|
|
|
for color in range(30, 38):
|
|
|
|
print(seq_template.format(30, color, color) + bold_template.format(30, color, color) + default)
|
|
|
|
print(seq_template.format(30, color, color) + bold_template.format(30, color, color) + default)
|
|
|
|
print()
|
|
|
|
print
|
|
|
|
|
|
|
|
|
|
|
|
def colors8():
|
|
|
|
def colors8():
|
|
|
|
print("8 bit colors:")
|
|
|
|
print("8 bit colors")
|
|
|
|
seq_template = "\033[{};{};{}m{}"
|
|
|
|
seq_template = "\033[{};{};{}m{}"
|
|
|
|
for color in range(16, 255):
|
|
|
|
for color in range(16, 255):
|
|
|
|
if color < 100:
|
|
|
|
if color < 100:
|
|
|
@ -26,6 +27,7 @@ def colors8():
|
|
|
|
if color % 36 == 15:
|
|
|
|
if color % 36 == 15:
|
|
|
|
print()
|
|
|
|
print()
|
|
|
|
#print(seq_template.format(48, 5, color) + bar + default)
|
|
|
|
#print(seq_template.format(48, 5, color) + bar + default)
|
|
|
|
|
|
|
|
print()
|
|
|
|
def main():
|
|
|
|
def main():
|
|
|
|
colors4()
|
|
|
|
colors4()
|
|
|
|
colors8()
|
|
|
|
colors8()
|
|
|
|