tags:

views:

82

answers:

2
+1  Q: 

Quiting Ruby Ri

I feel totally stupid asking this but but I'm new to programming so here goes...

When you run the Ruby ri command from an OS X term window to look at documentation for a particular command, how do you "quit" the documentation? At the end of the document, an (END) is displayed but I don't see how to quit this. I've tried CTRL-C, CTRL-D, Esc, etc. and I can't find the right key combination. I've searched online and apparently this is so obvious that no one's bothered to document.

+5  A: 

This is less, unless you changed the value of the environment variable PAGER. Type 'q' or 'ZZ'.

Jan Jungnickel
Doh! Thanks, guys.
A: 

Have you tried 'q'?

Martinho Fernandes