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

Snapshot / frame dataclass #370

Open
tony opened this issue May 13, 2022 · 0 comments
Open

Snapshot / frame dataclass #370

tony opened this issue May 13, 2022 · 0 comments

Comments

@tony
Copy link
Member

tony commented May 13, 2022

libtmux:

The Snapshot.

class Snapshot:

    created_at: datetime.utcnow()
    id: tmux_id

    def refresh_from_cli():
        # return new object with new created_at
class Session(Snapshot):
    pass


class Window(Snapshot):
    pass

acronyms: Frame, tmux object

This is a state of tmux at a certain time.

You can know, based on time, the likelihood a certain object is stale. What it means is that you can audit a terminal and trail it, you can record it, you can print the terminal to text. You can export the session, window, pane's contents to a file. You can assert that certain text exists in a pane, window, session, server.

A snapshot could be pickable. It could be serializable in various other formats

This can open doors to new ways of interacting with the terminal not hitherto conceived

Appendix

@tony tony added this to tmuxp May 13, 2022
@tony tony mentioned this issue May 17, 2022
@tony tony mentioned this issue Jan 6, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant