print("Rendering time: %fs" % (time.time() - t)) #print(_model.lines()) #sys.exit() engine.ADDRESS_SPACE.is_loading = False engine.ADDRESS_SPACE.changed = False Screen.init_tty() try: Screen.cls() Screen.enable_mouse() main_screen = MainScreen() APP.main_screen = main_screen APP.is_ui = True main_screen.e.set_model(_model) main_screen.e.addr_stack = addr_stack main_screen.e.goto_addr(show_addr) Screen.set_screen_redraw(main_screen.redraw) main_screen.redraw() main_screen.e.show_status("Press F1 for help, F9 for menus") main_screen.loop() except: log.exception("Unhandled exception") raise finally: Screen.goto(0, main_screen.screen_size[1]) Screen.cursor(True) Screen.disable_mouse() Screen.deinit_tty() Screen.wr("\n\n") saveload.save_session(project_dir, main_screen.e)
print("Rendering time: %fs" % (time.time() - t)) #print(_model.lines()) #sys.exit() engine.ADDRESS_SPACE.is_loading = False engine.ADDRESS_SPACE.changed = False Screen.init_tty() try: Screen.cls() Screen.enable_mouse() main_screen = MainScreen() APP.main_screen = main_screen APP.is_ui = True main_screen.e.set_model(_model) main_screen.e.addr_stack = addr_stack main_screen.e.goto_addr(show_addr) Screen.set_screen_redraw(main_screen.redraw) main_screen.redraw() main_screen.e.show_status("Press F1 for help, F9 for menus") main_screen.loop() except: log.exception("Unhandled exception") raise finally: Screen.goto(0, main_screen.screen_size[1]) Screen.cursor(True) Screen.disable_mouse() Screen.deinit_tty() Screen.wr("\n\n") saveload.save_session(project_dir, main_screen.e)