prototype for ncurses interface, including layout engine