]> git.tuebingen.mpg.de Git - gsu.git/commit
subcommand: Use pager for man output if possible.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 5 Mar 2017 22:03:36 +0000 (23:03 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 17 Apr 2017 14:11:23 +0000 (16:11 +0200)
commit276176cd0146e6017c57cffdf099def78ecfac24
treee3a5c00bf2fcc5b44220bf699f64f85a57c5c1aa
parent06c59d15434c5d0ea5757bfd4322d74f960dba57
subcommand: Use pager for man output if possible.

The manual can be much longer than one page, and it is easy to tell
whether stdout is associated with a terminal. The new _gsu_isatty()
takes care of that. It has been verified to work on FreeBSD, NetBSD
and Linux.
subcommand