Now uses TermManager
This commit is contained in:
parent
57dd733c54
commit
4b0554a913
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue