On Jul 23, 4:44 ¨Âí¬ ÂòùáÒéãèáòäóïî ¼âôòé®®®Àçíáéì®ãïí÷òïôåº
> [Note:  ¨Âáòôó ïæ ôèéó íåóóáç÷åòå òåíïöåôï íáëå éô ìåçáðïóô®Ý
>
> Awesome Gabe!  ¨Âèé÷ïòëåä ÐÅÒÆÅÃÔÌÙ¡  ¨Âèáîë ùïóï íõãè æïðïéîôéîçõô
> your project!

Glad it worked out :)
Gabriel



> --
> Bryan
>
> 2009/7/23 cldwalker <gabriel.hor... / gmail.com>
>
> > Hi Brian,
>
> > > I'm writing a Ruby command-line terminal program using Readline, and in
> > > some cases the output from the commands ran by the user overflows the
> > > height of the terminal.  ¨Âèõó¬ ɧìéëå ôï âå áâìå ôï èáöå ðáçéîáôéïî éî
> > > the program.  ¨Âîù éäåáèïôï äï ôèéó>
> > I've written hirb,http://tagaholic.me/hirb/, which does conditional
> > stdout pagination
> > among other things. For your particular case you'd do this:
>
> > require 'hirb'
> > Hirb::View.enable
> > Hirb::View.capture_and_render { puts output }
>
> > If the output exceeds your console height, it should default to a
> > system pager.
> > If this doesn't work you may need to pass your console's width and
> > height explicitly to Hirb:
> > Hirb::View.resize(width, height)
>
> > If Hirb doesn't do exactly what you want, you can also just rip out
> > the pagination stuff + tweak it.
>
> > Gabriel
>
>