How can I get input to stop at 'Esc' instead of \n ?

Printable View