Re: ri properly rendering monospace and italic in terminal window

"John Gabriele" <[email protected]>
Newsgroups gmane.comp.lang.ruby.documentation
Message-ID <[email protected]>
On 6/27/06, [email protected] <[email protected]> wrote:
>
>  Hello !
>
>
> > > > john@mango:~$ ri -f ansi File
> > > > "/tmp/ri_12959.0" may be a binary file. See it anyway?
> > > >
> > > > And then when the page comes up, it's loaded with
> > > >
> > > > ---------------------------------------- ESC[1mClass:
> FileESC[m
> > > > A ESC[36mFileESC[m is an abstraction of [snip]
> > > >
> > > > where the ESC's are reverse video.
> > > >
> > > > I'm on Debian Testing. This happens with both xterm and aterm.
>
>  I think the problem is that the output is being automatically send to the
> pager, less. Try this:
>
> ri -f ansi -T File

Sweet! That way, rather than bold and underlined, I get *color*. Nice! :)

>  If the display in the terminal is right, try then
>
> ri -f ansi -T File | less -R
>
>  The -T options says to send to standard output instead of a pager. The -R
> option of less asks him to interpret the ansi character sequences.

Yup. That works.

>  Enjoy !

Enjoying! Thanks Vince. :)

---John
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.