cldwalker / hirb

A mini view framework for console/irb that's easy to use, even while under its influence. Console goodies include a no-wrap table, auto-pager, tree and menu.
http://tagaholic.me/hirb/
MIT License
1.65k stars 72 forks source link

provide a console hint for large tables instead of (END) #50

Closed jcollum closed 12 years ago

jcollum commented 12 years ago

I just installed this gem today and used it to view an array that had 1400 rows. At the end of the table I saw "(END)" but had no idea how to cancel the view. I had to kill the console with Ctrl Z. I tried several things before that.

Suggestion: Replace "(END)" with something that gives the user a hint about what to hit to continue using irb normally. If I have to kill the irb every time I view a large array I won't use the tool.

jcollum commented 12 years ago

Forgot to mention: Ubuntu 11

cldwalker commented 12 years ago

By default hirb pages your output with your system's $PAGER. q should quit. To learn more while in the pager, press h. To never have hirb page, put in your irbrc:

 Hirb.enable :pager => false

Make sense?

cldwalker commented 12 years ago

Closing but feel free to comment if you need more help.

jcollum commented 12 years ago

Nah, thanks for clearing it up. I'm a linux noob.