示例#1
0
def main():
    stdscr = curses.initscr()
    curses.noecho()
    HOST="localhost"
    PORT=5001
    control = controller.Controller((HOST, PORT), controller.RequestHandler)
    
    try:
        while True:
            message = control.get_message()
            if message is not None:
                stdscr.clear()
                stdscr.border(0)
                stdscr.addstr(2,2, HOST+':'+str(PORT) )
                stdscr.addstr(4, 4, str(message) )
                stdscr.refresh()
            time.sleep(0.25)

    except KeyboardInterrupt:
        controller.shutdown()
        exit(0)
        curses.endwin()
示例#2
0
def test():
    controller.initialize()
    takeScreenshot()
    controller.shutdown()
示例#3
0
def shutdownAll():
  emulator.shutdown()
  screenshot.shutdown()
  controller.shutdown()
  imgUtils.shutdown()
示例#4
0
def test():
  controller.initialize()
  takeScreenshot()
  controller.shutdown()