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

refactor: extract session restore related code behind a trait #160

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Aetf
Copy link
Contributor

@Aetf Aetf commented Oct 4, 2024

This prepares us for more session restore backends in the future.

@Aetf Aetf force-pushed the term-trait branch 2 times, most recently from 565b523 to 205a522 Compare October 19, 2024 22:42
@Aetf Aetf marked this pull request as ready for review October 19, 2024 22:42
@Aetf Aetf requested a review from ethanpailes October 19, 2024 22:42
@Aetf
Copy link
Contributor Author

Aetf commented Oct 19, 2024

Since this also fixes a bug in the code. Let's get this submitted while I keep working on it.

Copy link
Contributor

@ethanpailes ethanpailes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good, left a few comments

libshpool/src/daemon/shell.rs Show resolved Hide resolved
libshpool/src/daemon/shell.rs Outdated Show resolved Hide resolved
libshpool/src/session_restore/mod.rs Outdated Show resolved Hide resolved
libshpool/src/session_restore/mod.rs Outdated Show resolved Hide resolved
This prepares us for more session restore backends in the future.

This also fixes a bug in the code where the vt100 internal state is
initialized to vterm_width, but will reset to u16::MAX on resize events.
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

Successfully merging this pull request may close these issues.

2 participants