Skip to content
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

Try changing tmux test loop to not look for :help help #158

Closed
cidrblock opened this issue Apr 29, 2021 · 1 comment
Closed

Try changing tmux test loop to not look for :help help #158

cidrblock opened this issue Apr 29, 2021 · 1 comment

Comments

@cidrblock
Copy link
Collaborator

capture screen before and after to detect changes

something like this

        """interact with the tmux session"""
        start_time = date.now()
        current_screen = self._pane.capture_pane()
        self._pane.send_keys(value, suppress_history=False)
        updated_screen = self._pane.capture_pane()
        while current_screen == updated_screen:
            time.sleep(0.1)
            updated_screen = self._pane.capture_pane()
            if date.now() == start_time > 10s:
                break
        return updated_screen
@cidrblock
Copy link
Collaborator Author

this didn't play out @ganeshrn because we were picking up half updated screens, it seems for now looking for the help string after issuing a :command might be the best that can be done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant