Skip to content
This repository

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

Open
knoopx opened this Issue August 24, 2010 · 2 comments

3 participants

Víctor Martínez t9md René Föhring
Víctor Martínez

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

t9md

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

http://gist.github.com/625808

René Föhring

This has been fixed here: #11

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.