Method: TTY::Pager::SystemPager.executables
- Defined in:
- lib/tty/pager/system.rb
.executables ⇒ Array[String]
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
List possible executables for output paging
The UNIX systems often come with “pg” and “more” but no “less” utility. The Linux usually provides “less” and “more” pager, but often no “pg”. MacOS comes with “less” and “more” pager and no “pg”. Windows provides “more”. The “more” pager is the oldest utility and thus most compatible with many systems.
65 66 67 68 |
# File 'lib/tty/pager/system.rb', line 65 def self.executables [ENV["GIT_PAGER"], ENV["PAGER"], git_pager, "less -r", "more -r", "most", "pg", "cat", "pager"].compact end |