================
@@ -0,0 +1,16 @@
+import { ChildProcessWithoutNullStreams, spawn } from "child_process";
+import { LinuxProcessTree } from "./linux-process-tree";
+
+function fill(prefix: string, suffix: string, length: number): string {
----------------
Da-Viper wrote:

you could use the `padEnd` i.e `"COMMAND".padEnd(256, '-')` see 
[MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padEnd)

or use the unlimited width for the command name in ps with the `ww` flag. It 
has to be the last column on freebsd unless it is ignored quote.

> 
       -w      Use at least 132 columns to display information, instead of the
               default  which  is  the  window size if ps is associated with a
               terminal.  If the -w option is specified  more  than  once,  ps
               will  use  as  many columns as necessary without regard for the
               window size.  Note that  this  option  has  no  effect  if  the
               "command" column is not the last column displayed.


[freebsd](https://man.freebsd.org/cgi/man.cgi?ps(1)) 
[linux](https://man7.org/linux/man-pages/man1/ps.1.html) 
[mac](https://www.unix.com/man_page/osx/1/ps/)


https://github.com/llvm/llvm-project/pull/128943
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to