-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wait until <condition>
to send command (blocking send command)
#96
Comments
@thomasballinger : Are you doing this via Python API (I assume) or config file? Do you have any report on your progress with these approaches? |
I've been using the Python api, here's the helper I'm currently using: Waiting for the prompt to appear (when it can be predicted) is the approach I'm using now. Checking the window title doesn't seem helpful because we can only poll it and might miss it changing (if it's even guaranteed that it will change). |
@thomasballinger : Would it be helpful to you if tmuxp would return the process tree of what's underneath a server / session / window / pane? PID / process name being ready would give you something solid to poll against. To give you an idea of the data that could be exposed, do |
This issue has been automatically marked as stale because it has not had This bot is used to handle issues where the issue hasn't been discussed or |
@thomasballinger 1.10 has experimental sleep/skip support: https://tmuxp.git-pull.com/history.html#tmuxp-1-10-0-2022-03-19 Not the same as scanning contents and waiting for shell commands to finish, but those can sometimes achieve equivalent outcomes |
🎉 |
<condition>
to send command (blocking send command)
I just looked at the implementation of There are some key differences though:
|
I'd find blocking send command functionality useful. So far I've tried waiting for the window title to change back to the shell, waiting for the shell prompt to appear, and waiting for the cursor to move to a new position / the size of the scrollback buffer to increase by a certain amount. Any thoughts on how this could be implemented?
The text was updated successfully, but these errors were encountered: