Now uses TermManager

This commit is contained in:
eichhornchen 2020-10-16 15:00:33 +02:00
parent 57dd733c54
commit 4b0554a913

View File

@ -1,5 +1,5 @@
import curses
#import term_manager.py as term
from term_manager import TermManager
import time
filename = "map.txt"
@ -39,7 +39,6 @@ def main(stdscr):
if cur[1]<len(M[0]) and M[cur[0]][cur[1]+1] != '#' :
cur[1] = cur[1]+1
stdscr.addstr(cur[0],cur[1],'@')
#stdscr.refresh()
curses.wrapper(main)
with TermManager() as T :
main(T.screen)