|
|
@ -62,21 +62,22 @@ class CLI: |
|
|
|
if (x, y) in self.screen: |
|
|
|
content += self.screen[(x, y)] |
|
|
|
else: |
|
|
|
content += "a" |
|
|
|
content += " " |
|
|
|
content += "\n" |
|
|
|
print("\033[H\033[J", end="") |
|
|
|
print(content) |
|
|
|
|
|
|
|
cli = CLI() |
|
|
|
layer = Layer(cli.x, cli.y) |
|
|
|
layer.put_char("t", 5, 6, Colors.BLUEBG, Colors.BLACK) |
|
|
|
layer.put_string("""test""", 8, 9, Colors.BEIGEBG) |
|
|
|
if __name__ == "__main__": |
|
|
|
cli = CLI() |
|
|
|
layer = Layer(cli.x, cli.y) |
|
|
|
layer.put_char("t", 5, 6, Colors.BLUEBG, Colors.BLACK) |
|
|
|
layer.put_string("""test""", 8, 9, Colors.BEIGEBG) |
|
|
|
|
|
|
|
cli.set_layer("test", layer) |
|
|
|
##cli.put_char("t", 5, 6, Colors.BLUEBG, Colors.BLACK) |
|
|
|
#cli.put_string("tttaaaaaa ttt \n ttttttttttnnnnnn t", 8, 9, Colors.BEIGEBG) |
|
|
|
#cli.draw() |
|
|
|
cli.set_layer("test", layer) |
|
|
|
##cli.put_char("t", 5, 6, Colors.BLUEBG, Colors.BLACK) |
|
|
|
#cli.put_string("tttaaaaaa ttt \n ttttttttttnnnnnn t", 8, 9, Colors.BEIGEBG) |
|
|
|
#cli.draw() |
|
|
|
|
|
|
|
while True: |
|
|
|
while True: |
|
|
|
cli.draw() |
|
|
|
sleep(1) |