module Utils::IRB::Shell

def less(with_stderr = false, &block)

Use pager on the output of the commands given in the block.
def less(with_stderr = false, &block)
  IO.popen($pager, 'w') do |f|
    f.write capture_output(with_stderr, &block)
    f.close_write
  end
  nil
end