Put in another way, what is the node.js equivalent of C's getchar
function? (which waits for input and when it gets it, it returns the character code of the letter, and subsequent calls get more characters from stdin)
I tried searching google, but none of the answers were synchronous.