A query about panes #18475
Unanswered
AdreKiseque
asked this question in
Q&A
A query about panes
#18475
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Starting off with the core of what I'm looking for, I'd like to start an asynchronous PowerShell process that displays its output in a second pane while the original process continues in the first pane, and be able to return a signal to that first process once the second one finishes.
In more detail, PowerShell has a neat little feature called "jobs", which give you an easy way to start asynchronous processes while keeping tabs on their status. The thing about jobs is, well, you can't really see them. So I was toying with the idea of using WT's fancy panes feature to display the output of these processes side-by-side with the primary script running in the original one. Unfortunately, this makes the "keeping tabs on them" part a little tricky... well, tricky for the script, easy for the user, I guess.
I've found that opening a new pane and giving it commands is pretty easy, but the big issue is getting info back. Ultimately, I have to call
wt.exe
to start the pane, andwt.exe
isn't really the best with communication. Most notably, it instantly returns after launching the pane, so I can't rely on checking if the process I started has terminated to determine if my task is actually finished. Is there any solution to this I'm missing that doesn't involve just some absurd amount of manual custom stuff to facilitate communication between the two processes?Beta Was this translation helpful? Give feedback.
All reactions