Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

Session serialization/storage/restoration #567

Closed

Description

@mike-engel

It'd be really nice if when hypertyerm quit, the current sessions were stored somehow, somewhere, so that when hyperterm restarted, they would be restored. This is most helpful during computer restarts or accidental quits. This is also another handy feature that iTerm has.

Activity

  1. added
    help wanted
    🛠 Type: Feature Request
    on Aug 5, 2016
  2. added
    ❣️ Priority: High
    on Nov 5, 2016
  3. ppot commented on Nov 6, 2016

    @ppot
    Contributor

    @matheuss This is my PR #945

  4. Kentzo commented on Jan 13, 2017

    @Kentzo

    @ppot Thank you a lot for that contribution!

    My 2 cents: Terminal.app on macOS, among other things like restoring CWD, passes the TERM_SESSION_ID environment variable into every shell process. If user then quits app with active session, on the next launch all shells will be re-initialized with the same TERM_SESSION_ID.

    That allows a user to actually customize the restoration process by doing the following:

    1. User can define the shell_session_save_user_state function
    2. Terminal.app calls that function on exit (registered as trap ... EXIT)
    3. In the implementation user dumps whatever shell commands he wishes to execute to SHELL_SESSION_FILE (which is ~/.bash_sessions/$TERM_SESSION_ID.session for bash)
    4. On the next launch that file is sourced and then deleted

    You can find the implementation of this logic in /etc/bashrc_Apple_Terminal.

    It opens a lot of possibilities for customization by requiring very little from Hyper: just some kind of unique ID which it should be present anyway.

    An example of such customization is preserving active virtualenv.

  5. ppot commented on Jan 13, 2017

    @ppot
    Contributor

    @Kentzo I like that idea.

  6. Stanzilla commented on Apr 23, 2018

    @Stanzilla
    Contributor

    let's continue here #945

  7. deleted a comment from abhishek71994 on Jun 4, 2019
  8. locked as off topic and limited conversation to collaborators on Jun 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wanted❣️ Priority: High🛠 Type: Feature Request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions