New Code! (third release’s the charm)
After spending a couple of days figuring out the woefully undocumented macos KVM_PROCARGS2 sysctl, I'm releasing pstree 0.3, which now supports the -a option on macos 10.0.4, and which, as a special bonus, also supports line clipping when you don't supply the -l argument.
This one almost works on R*dh*t Linux, too (it works, but clipping doesn't work properly yet.) I've got three machines at home that do run modern versions of Linux (three little ARM boxes; two of them are my routers so aren't likely to be upgraded to an as-yet-vapo(u)rware RTKBA Mastodon, but the third is a Technologic Systems TS7800 which may be clipped onto the top of Dust Mite's new ride, so it's likely to have the embedded Debian ripped right out of it and replaced with a somewhat slimmer Linux distribution, which will need this version of pstree to help sate the knights who say NIH!)
Oh, and the guts of ptree() are kind of gross where they wrap around the KVM_PROCARGS2 sysctl. The leading zero on the version number is the mark of that kind of quality, and you can get it too, if you want New Code! for your machine.