[264] allow multi-line user input using getchar()