output with curses