Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

ANSI escape codes are considered part of the string length #2

knoopx opened this Issue Aug 24, 2010 · 3 comments


None yet
4 participants

knoopx commented Aug 24, 2010

Using colors or other special escape characters makes the row width thinner than it should

t9md commented Oct 14, 2010

I also encountered same issue, and made following monkey-patch. It's worked for me.



rrrene commented Oct 17, 2011

This has been fixed here: visionmedia#11

BTW: I think monkey-patching String#to_s produces a hell lot of more problems than it fixes.


nateberkopec commented Apr 13, 2015

Fixed in #11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment