Now uses TermManager

This commit is contained in:
eichhornchen 2020-10-16 15:00:33 +02:00 committed by Nicolas Margulies
parent e448697e6b
commit 4175238297
1 changed files with 3 additions and 4 deletions

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)