Feature #11906
closedAdd line drawing characters to ptree(1)
100%
Description
Commands such as pstree on Linux can display the process tree with line drawing characters. It would be nice to add support for similar output.
Related issues
Updated by Jason King over 2 years ago
To test, I built the new binary and ran it w/ various combination of flags (none, -g
, -s
, -gs
) (using the pid of the shell -- e.g. ptree -g $$
) both in the C locale and in the en_US.UTF-8 locale, and compared the output to the unmodified ptree command. The output was identical except for the expected line drawing characters (which looked as expected, both matching the indentation of the text as well as the ASCII or UTF-8 line drawing characters based on the locale).
For the man page changes, those were verified via manual inspection.
Updated by Electric Monk over 2 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
git commit 9f62da4d4c37a940c1a7c639e4b9ac1bcb7eb570
commit 9f62da4d4c37a940c1a7c639e4b9ac1bcb7eb570 Author: Jason King <jason.king@joyent.com> Date: 2019-11-09T23:56:35.000Z 11906 Add line drawing characters to ptree(1) Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Approved by: Dan McDonald <danmcd@joyent.com>
Updated by Jason King over 2 years ago
- Related to Bug #12037: ptree zone handling is broken added