Exiting ri on a mac terminal

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-forum.com/.

q?

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

-Rob

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

···

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?

ri uses less(1), press q to exit.

···

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?

--
Fred O. Phillips

BBC7 7572 755F 83E0 3209 504A E4F7 874F 1545 9D41

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-forum.com/\.

Try putting this line in your .bash_profile:

alias ri='ri -f ansi -T'

Much nicer behavior and display in Terminal. m.

···

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!

--
matt neuburg, phd = matt@tidbits.com, Matt Neuburg’s Home Page
Leopard - http://www.takecontrolbooks.com/leopard-customizing.html
AppleScript - http://www.amazon.com/gp/product/0596102119
Read TidBITS! It's free and smart. http://www.tidbits.com

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-forum.com/\.

Better:

export RI=-T -f ansi

···

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.