Add line drawing characters to ptree(1)
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.
Updated by Jason King almost 2 years ago
To test, I built the new binary and ran it w/ various combination of flags (none,
-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 almost 2 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit 9f62da4d4c37a940c1a7c639e4b9ac1bcb7eb570 Author: Jason King <firstname.lastname@example.org> Date: 2019-11-09T23:56:35.000Z 11906 Add line drawing characters to ptree(1) Reviewed by: Andy Fiddaman <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>