Now uses TermManager
This commit is contained in:
		
				
					committed by
					
						
						Nicolas Margulies
					
				
			
			
				
	
			
			
			
						parent
						
							e448697e6b
						
					
				
				
					commit
					4175238297
				
			@@ -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)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user