def f(stdscr): (y, x) = stdscr.getmaxyx() outp = stdscr.derwin(y - 5, x, 0, 0) wout = DividableWin(win=outp) wout.callback = TextContainer() inp = stdscr.derwin(5, x, y - 5, 0) vb = VimBox(inp, wout.update, wout.callback.userinput) vb()
def main(stdscr): (y, x) = stdscr.getmaxyx() out = DividableWin(win=stdscr.derwin(y-5, x, 0, 0)) out.callback = TextContainer() def userinput(s): out.getactive().callback.userinput(s) inp = VimBox(stdscr.derwin(5, x, y-5, 0), out.update, userinput, out) inp()