This question already has an answer here:

I am running pstree on MacOS Majave and wan to Show branches of processes using VT100 graphic chars:

$ pstree -g 2 | head -n 3
─┬◆ 00001 root /sbin/launchd
 ├──◆ 00049 root /usr/sbin/syslogd
 ├──◆ 00050 root /usr/libexec/UserEventAgent (System)

Tried to show it from less

ESC(BESC)0^Nqw`^O 00001 root /sbin/launchd
^N tqq`^O 00049 root /usr/sbin/syslogd
^N tqq`^O 00050 root /usr/libexec/UserEventAgent (System)

How could I solve such a problem?

marked as duplicate by Stephen Kitt, dirkt, Mr Shunz, Thomas Dickey, user34720 Jan 9 at 10:30

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


This gives me something very similar to the vt100 line drawing set:

$ pstree -g 2 -U|less

Not the answer you're looking for? Browse other questions tagged or ask your own question.