joyent/node — pull request #3059 by nfriedly (2012-04-04 01:19:33+00:00)
Title: Fix to make ReadLine's Interface only fire 'line' events after a \n is recieved

This fixing ReadLine's Interface._normalWrite() to buffer keystrokes and only fire _onLine() when a \n is sent. (And fire it multiple times if multiple lines arrive at once.)

This is necessary because the Windows telnet client sends every single keystroke as it's typed - see http://stackoverflow.com/questions/9962197/node-js-readline-not-waiting-for-a-full-line-on-socket-connections/ for more info.