joyent/node — pull request #2873 by rlidwka (2012-03-05 17:20:02+00:00)
Title: Readline.js: multiline support

Currently readline.js behaves like user's input is always one line. It will cause problems if user's input is very long line that's splitted into multiple lines in the terminal.

If you're writing a long line in REPL and then try to edit it, insert something, etc., you will notice some strange behaviour like that: http://screens.jggt.co.cc/4f97f046.png .

This patch uses information about terminal's size to fix this issue.