joyent/node — pull request #5629 by OhJeez (2013-06-04 15:21:16+00:00)
Title: readline: strip ctrl chars for prompt width calc

Use regular expression to strip vt ansi escape codes from display when
calulating prompt display width and cursor position

Fixes #3860 and #5628