예제 #1
0
파일: vimbox.py 프로젝트: tych0/hermit
  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()
예제 #2
0
파일: hermit.py 프로젝트: tych0/hermit
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()