13 lines
345 B
Python
13 lines
345 B
Python
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()
|
|
print("hello" + ansi_escape.move_cursor("up", "2"))
|
|
input()
|
|
print(ansi_escape.erase_from_cursor("forward"))
|
|
input() |