diff --git a/bpytop.py b/bpytop.py index 992c833..2fadbf3 100755 --- a/bpytop.py +++ b/bpytop.py @@ -3278,7 +3278,7 @@ class ProcCollector(Collector): out[p.info["pid"]] = { "name" : p.info["name"], - "cmd" : cmd, + "cmd" : cmd.replace("\n", "").replace("\t", "").replace("\\", ""), "threads" : p.info["num_threads"], "username" : p.info["username"], "mem" : mem, @@ -3460,7 +3460,7 @@ class ProcCollector(Collector): out[pid] = { "indent" : inindent, "name": name, - "cmd" : cmd, + "cmd" : cmd.replace("\n", "").replace("\t", "").replace("\\", ""), "threads" : threads, "username" : username, "mem" : mem,