Ejemplo n.º 1
0
def top():
    options = read_args()

    zc = ZkClient(options.zserver, options.zport)
    zc.start()

    try:
        curses.wrapper(curses_main, [zc, options])
        #curses_main(None, [zc, options])

    except KeyboardInterrupt:

        pass

    finally:
        zc.stop()