How to listen for currently running comand's lifecycle #6106
Unanswered
Avinash-Bhat
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What Operating System(s) are you running on?
Linux X11
Which Wayland compositor or X11 Window manager(s) are you using?
i3 (4.23)
WezTerm version
20240203-110809-5046fc22
Ask your question!
I'm very new to wezterm and was starting to do some custom scripts to bring some features from iterm2.
Is there a way to get a callback when the command's current lifecycle changes? like when the command completes, or when command is waiting for the stdin (latter may be too hard to do for any terminal emulator).
My goal is to alert the user if the current running command requires input or when the command completes. In iterm2, there is a feature for this, so I was looking to replicate the same using callbacks.
Beta Was this translation helpful? Give feedback.
All reactions