output management with ncurses first impl