How can single characters be read from standard input without having to wait for a newline? I'm trying to write an improved editor, and I can't even start without this information.