Lines Matching refs:pager
31 # variable or the less, more and pager programs)
70 # Controls the user of the pager vs $stdout
168 The ri pager can be set with the 'RI_PAGER' environment variable or the
200 opt.on("--[no-]pager", "-T",
202 "rather than to a pager.") do |use_pager|
395 # pager process for jruby
751 # Converts +document+ to text and writes it to the pager
990 # Finds the given +pager+ for jruby. Returns an IO if +pager+ was found.
992 # Returns false if +pager+ does not exist.
997 def find_pager_jruby pager
1003 pager = Shellwords.split pager
1005 pb = java.lang.ProcessBuilder.new(*pager)
1040 # use it. If we're outputting to a pager, use bs, otherwise ansi.
1288 # Paginates output through a pager program.
1291 if pager = setup_pager then
1293 yield pager
1295 pager.close
1307 # Are we using a pager?
1368 # Sets up a pager program to pass output through. Tries the RI_PAGER and
1369 # PAGER environment variables followed by pager, less then more.
1376 pagers = [ENV['RI_PAGER'], ENV['PAGER'], 'pager', 'less', 'more']
1378 pagers.compact.uniq.each do |pager|
1379 next unless pager
1381 pager_cmd = pager.split.first
1386 case io = find_pager_jruby(pager)
1392 io = IO.popen(pager, 'w') rescue next
1395 next if $? and $?.pid == io.pid and $?.exited? # pager didn't work