gst-inspect-1.0 outputs nothing on macOS when the output fits in the terminal
less -F
on macOS differs from Linux in that it clears the screen on when termcap outputs deinitialization strings, so nothing is displayed at all:
giniro:~ nirbheek$ gst-inspect-1.0 foo
giniro:~ nirbheek$
giniro:~ nirbheek$ gst-inspect-1.0 foo | cat
No such element or plugin 'foo'
giniro:~ nirbheek$
One fix is to use less -X -F
which doesn't send those deinitialization strings. However, that will also mean that the output will fill up the screen paginating normally, so we should only use -X
on macOS.
Apparently -X
also breaks scrolling (I tested this), so maybe less
is better.
Edited by Nirbheek Chauhan