ansi_escape/examples/test.py

9 lines
229 B
Python
Raw Normal View History

2021-03-09 14:02:21 +00:00
import ansi_escape
a = 0
while a < 256:
b = str(a)
print(ansi_escape.color("256", "bg", b) + " " + b + " " + ansi_escape.reset, end='')
a += 1
print(ansi_escape.escape + "]0;Demo" + ansi_escape.escape + "\\")
input()