vxfw: add opt-in primary-screen history mode (preserve terminal scrollback)#310
Open
Fristender wants to merge 1 commit intorockorager:mainfrom
Open
vxfw: add opt-in primary-screen history mode (preserve terminal scrollback)#310Fristender wants to merge 1 commit intorockorager:mainfrom
Fristender wants to merge 1 commit intorockorager:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds an opt-in mode for
vxfw.Appthat runs in the primary screen and preserves terminal scrollback/history, while keeping default libvaxis behavior unchanged.What changed
Added
vxfw.App.Options.primary_screen_history: bool = falsetrue, app runs in primary screen and preserves history.Wired
vxfw.App.runto:primary_screen_history == false.vx.opts.preserve_screen_on_exitbased on the new option.Updated
Vaxisbehavior to support preservation:Vaxis.Options.preserve_screen_on_exit(defaultfalse).resetState, when preservation is enabled on primary screen, avoid clearing the frame and move to a new line.resize, avoid erasing below cursor in preserved primary-screen mode.Behavior
.primary_screen_history = false): unchanged from current libvaxis defaults..primary_screen_history = true):Notes
Mouse capture/input policy changes are intentionally not included in this PR.