[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Exiting ri on a mac terminal

Jody Glidden

9/23/2008 9:31:00 PM

Hi,
I've been avoiding using ri for my docs because when I type it I can't
seem to exit out of it without closing terminal.

I've tried all the usual suspects like ctrl-c, ctrl-d, esc. Any ideas
on what I might be doing wrong?
--
Posted via http://www.ruby-....

5 Answers

Rob Biedenharn

9/23/2008 9:40:00 PM

0


On Sep 23, 2008, at 5:31 PM, Ruby Fan wrote:

> Hi,
> I've been avoiding using ri for my docs because when I type it I can't
> seem to exit out of it without closing terminal.
>
> I've tried all the usual suspects like ctrl-c, ctrl-d, esc. Any ideas
> on what I might be doing wrong?


q?

If you have a ':' prompt, you're in less (or your configured PAGER
program).

-Rob

Rob Biedenharn http://agileconsult...
Rob@AgileConsultingLLC.com


Jody Glidden

9/23/2008 9:55:00 PM

0

Fred Phillips wrote:
> On Tue Sep 23 21:40:14 2008, Ruby Fan wrote:
>> Hi,
>> I've been avoiding using ri for my docs because when I type it I can't
>> seem to exit out of it without closing terminal.
>>
>> I've tried all the usual suspects like ctrl-c, ctrl-d, esc. Any ideas
>> on what I might be doing wrong?
>
> ri uses less(1), press q to exit.

That was it. Thanks!
--
Posted via http://www.ruby-....

matt

9/24/2008 1:12:00 AM

0

Ruby Fan <jody.glidden@gmail.com> wrote:

> Fred Phillips wrote:
> > On Tue Sep 23 21:40:14 2008, Ruby Fan wrote:
> >> Hi,
> >> I've been avoiding using ri for my docs because when I type it I can't
> >> seem to exit out of it without closing terminal.
> >>
> >> I've tried all the usual suspects like ctrl-c, ctrl-d, esc. Any ideas
> >> on what I might be doing wrong?
> >
> > ri uses less(1), press q to exit.
>
> That was it. Thanks!

Try putting this line in your .bash_profile:

alias ri='ri -f ansi -T'

Much nicer behavior and display in Terminal. m.

--
matt neuburg, phd = matt@tidbits.com, http://www.tidbits...
Leopard - http://www.takecontrolbooks.com/leopard-custom...
AppleScript - http://www.amazon.com/gp/product/...
Read TidBITS! It's free and smart. http://www.t...

Jody Glidden

9/24/2008 2:18:00 AM

0

> Try putting this line in your .bash_profile:
>
> alias ri='ri -f ansi -T'
>
> Much nicer behavior and display in Terminal. m.

I just put it in my .profile but didn't notice any difference.
--
Posted via http://www.ruby-....

Eric Hodel

9/24/2008 7:08:00 AM

0

On Sep 23, 2008, at 18:14 PM, matt neuburg wrote:
> Ruby Fan <jody.glidden@gmail.com> wrote:
>> Fred Phillips wrote:
>>> On Tue Sep 23 21:40:14 2008, Ruby Fan wrote:
>>>> Hi,
>>>> I've been avoiding using ri for my docs because when I type it I
>>>> can't
>>>> seem to exit out of it without closing terminal.
>>>>
>>>> I've tried all the usual suspects like ctrl-c, ctrl-d, esc. Any
>>>> ideas
>>>> on what I might be doing wrong?
>>>
>>> ri uses less(1), press q to exit.
>>
>> That was it. Thanks!
>
> Try putting this line in your .bash_profile:
>
> alias ri='ri -f ansi -T'
>
> Much nicer behavior and display in Terminal. m.

Better:

export RI=-T -f ansi