Now uses TermManager

This commit is contained in:
eichhornchen 2020-10-16 15:00:33 +02:00
parent 57dd733c54
commit 4b0554a913
1 changed files with 3 additions and 4 deletions

View File

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