rdoc icon indicating copy to clipboard operation
rdoc copied to clipboard

Broken ANSI color sequences on Windows

Open tknerr opened this issue 10 years ago • 5 comments

Not sure if this bug fits here. I'm using RubyInstaller Ruby 2.0.0-p451 (x64) with DevKit 4.7.2 (x64) on Windows7.

After installing the rdoc-data gem and installing the ri data for core + stdlib, i.e.

gem install rdoc-data
rdoc-data --install

...I noticed that the ansi formatter is now turned on by default. Not sure how that happened, but thankfully to @ssmythe I found this workaround which suggests set RI=--format bs to restore the old behaviour.

In fact the ansi coloring would be nice, but it doesn't work properly with my setup, i.e. looks like this: image

Any ideas what could be the cause or how to fix this?

/cc @luislavena @ssmythe

tknerr avatar Dec 02 '14 23:12 tknerr

Seems to be an rdoc/rdoc-data issue instead. I just verified that ri String colored output works properly until the rdoc-data gem is installed.

Once rdoc-data is installed and ri data is installed the colors are broken as shown above.

Uninstalling the gem did NOT fix the colored output again.

tknerr avatar Dec 03 '14 00:12 tknerr

I can't believe this bug is just sitting here more than two years later.

xiconet avatar Feb 15 '17 04:02 xiconet

I can't believe you didn't send a pull request to fix it.

drbrain avatar Feb 15 '17 04:02 drbrain

Did you?

xiconet avatar Feb 15 '17 06:02 xiconet

  1. I'm not paid to
  2. I don't use Windows so the effort is far too high for the return on investment
  3. Your entitlement to my free labor is not encouraging me to even try

drbrain avatar Feb 15 '17 06:02 drbrain