Re: ri properly rendering monospace and italic in terminal window
| Newsgroups | gmane.comp.lang.ruby.documentation |
|---|---|
| Message-ID | <[email protected]> |
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 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. Enjoy ! Vince