gst-inspect: Use less -F -X everywhere as the pager
authorNirbheek Chauhan <nirbheek@centricular.com>
Thu, 22 Nov 2018 22:01:38 +0000 (03:31 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Fri, 23 Nov 2018 15:01:27 +0000 (20:31 +0530)
commita3abe8b9aeb7ac54159bc780d7d0f26c17aa51d9
treea99337c2966944c1dc74e44696cdbd624bd08f12
parentbd83f11b7171c4b7ee7cd60219dfe73b3759eeab
gst-inspect: Use less -F -X everywhere as the pager

This emulates the default behaviour of git help pages, and also fixes
a bug on macOS where `less -F` doesn't display anything at all when
the output is shorter than one terminal screen.

Also moved the DEFAULT_PAGER define to after the includes, because
it's an unprefixed define.

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/issues/330
tools/gst-inspect.c