ansi_escape/examples/garble_display.py

7 lines
258 B
Python
Raw Normal View History

2021-03-12 21:33:18 +00:00
import ansi_escape
from random import randint as randint
while 1:
print(ansi_escape.cup(column=randint(1, 80), row=randint(1, 30)) +
ansi_escape.color("bg", randint(0, 255), randint(0, 255), randint(0, 255)) +
" " +
ansi_escape.unset("all"))