LocalProcessInfo
¶
Since: Version 20220101-133340-7edc5b5a
The functionality described in this section requires version 20220101-133340-7edc5b5a of wezterm, or a more recent version.
LocalProcessInfo
represents a process running on the local machine.
It has the following fields:
pid
- the process idppid
- the parent process idname
- a short name for the process. Due to platform limitations, this may be inaccurate and truncated; you probably should prefer to look at theexecutable
orargv
fields instead of this onestatus
- a string holding the status of the process; it can beIdle
,Run
,Sleep
,Stop
,Zombie
,Tracing
,Dead
,Wakekill
,Waking
,Parked
,LockBlocked
,Unknown
.argv
- a table holding the argument array for the processexecutable
- the full path to the executable image for the process (may be empty)cwd
- the current working directory for the process (may be empty)children
- a table keyed by child process id and whose values are themselvesLocalProcessInfo
objects that describe the child processes
See mux-is-process-stateful and pane:get_foreground_process_info()