"If pstree is called as pstree.x11 then it will prompt the user at the end of the line to press return and will not return until that has happened. This is useful for when pstree is run in a xterminal."
Is there a particular reason for handling stuff in psmisc that should be handled elsewhere? That is, every terminal emulator software I've used so far allows specifying a "detailed" command to execute, such as:
'/bin/sh -c "pstree; echo \"Press return to close\"; read"'
which flawlessly emulates the pstree.x11 functionality.
Seriously, this reminds me of people using "system("PAUSE");" in programming classes.
Anonymous
This was required for launching directly from an X11 menu, hence its name, not a terminal.