[stdin] when reading from stdin, dump the contents after exiting from curses