cowyeet_terminal/terminal engine/tengine.py

23 lines
569 B
Python
Raw Normal View History

2023-11-06 16:13:41 +01:00
from os import get_terminal_size
class tengine():
tx, ty = get_terminal_size().columns, get_terminal_size().lines
#feld = [[""]*10]*10
feld = [["","","",],["","","",],["","","",]]
test = 0
for a in feld:
for b in a:
print(test)
b = test
test +=1
print(feld)
def strfeld():
back = ""
for a in tengine.feld:
for b in a:
back += b
back += "\n"
return back
def addchar(character=str,position=list):
tengine.feld[2][2] = "a"