Re: ri properly rendering monospace and italic in terminal window
Eric Hodel <[email protected]>
| Newsgroups | gmane.comp.lang.ruby.documentation |
|---|---|
| Message-ID | <[email protected]> |
On Jun 26, 2006, at 2:48 PM, John Gabriele wrote: > On 6/26/06, Eric Hodel <[email protected]> wrote: >> On Jun 26, 2006, at 1:40 PM, John Gabriele wrote: >> >> > On 6/26/06, Eric Hodel <[email protected]> wrote: >> >> On Jun 26, 2006, at 9:58 AM, John Gabriele wrote: >> >> >> >> > When I run the ri command in my xterm (or aterm), the text >> that's >> >> > supposed to be monospaced always has plus signs around it. Same >> >> with >> >> > italics and _underscores_. >> >> > >> >> > Anyone know how I might get it to properly render (say, maybe >> >> removing >> >> > + signs, showing italics as underlined, and bold as bold)? >> >> >> >> ri -f ansi >> >> >> >> You shouldn't see +, _ or * in output text around words. If >> you do, >> >> the formatting was applied incorrectly or RDoc has a bug. For >> >> example, +:foo+ won't be marked up but +foo+ will. >> > >> > 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. >> >> With Terminal.app it works fine. >> >> What is your $TERM? >> >> $ echo $TERM >> xterm-color > > $ echo $TERM > xterm It will probably work in ansi mode if you tell xterm it is a color terminal (I forget if you can just do TERM=xterm-color or if you have to specify a resource or flag or something). -- Eric Hodel - [email protected] - http://blog.segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com