From: Eric Christopherson Date: 2010-09-29T09:09:10+09:00 Subject: Re: Color sequences in ri on Windows On Tue, Sep 28, 2010 at 6:48 PM, Luis Lavena wrote: > On Sep 28, 8:14 pm, Eric Christopherson > wrote: >> After installing some gems, the system recommended that I refresh ri >> and rdoc. I may have actually updated the ri and rdoc programs too; >> unfortunately I don't remember which commands I used. After that, >> whenever I use ri the output is full of ANSI color sequences; I'm on >> Windows (using 1.9.1p429 from RubyInstaller) using the Windows >> console, so they don't display as color. I thought maybe installing >> win32console would fix it, but it didn't. >> >> So: What commands might I have typed that put color sequences into ri? >> And how do I either remove the color sequences, or make them display >> as color? > > By "ri colors" you mean invoking "ri Kernel.system" ? > > If you used RubyInstaller releases, you should get: > > No usage information available for this program > Note to developer: requested section(s) [Installing Documentation] not > found Well, using Kernel.system as an example, I get: ←[0m←[1;32mKernel.system←[m (from ruby core) ------------------------------------------------------------------------------ system([env,] cmd [, arg, ...] [,options]) => true, false or nil ------------------------------------------------------------------------------ [etc.] You're saying that a default RubyInstaller installation shouldn't have any documentation for Kernel.system? That seems odd. > But since you mention you generated yourself, this could be related to > rdoc-data, right? Oh, possibly; I do have the rdoc-data gem. > I'm unaware of any command that turns ri ANSI color coding except if > the documentation was generated with these colors. > > Can you check the ri yaml documents for these ANSI escape sequences? Where would I find those?