output management with ncurses-missing functions fixed