From 0def94568a8e7588510e111e566a7d1df0a91655 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Fri, 14 Apr 2017 19:53:05 +0200 Subject: [PATCH] Fix pstree(1) vertical line drawing character. --- utils/pstree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/pstree.c b/utils/pstree.c index 028602f5..3eb1d146 100644 --- a/utils/pstree.c +++ b/utils/pstree.c @@ -98,7 +98,7 @@ static void pstree(pid_t pid, const char* prefix, bool continuation) err(1, "malloc"); memcpy(new_prefix, prefix, prefix_length); memcpy(new_prefix + prefix_length, - psst.ppid_next != -1 ? " | " : " ", 3); + psst.ppid_next != -1 ? " │ " : " ", 3); for ( size_t i = 0; i < path_length; i++ ) new_prefix[prefix_length + 3 + i] = ' '; new_prefix[prefix_length + 3 + path_length] = '\0';