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

Fix clear and reset actions when ongoing foreground process #823

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jeremypw
Copy link
Collaborator

@jeremypw jeremypw commented Dec 16, 2024

Fixes #819
Fixes #820

  • Confirm kill foreground process before reset action
  • Ignore clear screen action if there is a foreground process
  • Change hotkeys for clear and reset actions so do not clash with nano
  • DRY related code

Because we cannot guarantee the state of the terminal if the foreground process is killed (see #824 ) the clear action is ignored when a foreground process is running. Resetting the terminal is OK as the terminal state is reset to something sensible.

There is little difference between the "Reload" action and the "Reset" action. The former starts a new shell process whereas the latter resets the existing one. Not sure if we need both. Only the latter is shown in the context menu atm.

@jeremypw jeremypw marked this pull request as ready for review December 16, 2024 16:09
@jeremypw jeremypw requested a review from a team December 16, 2024 16:10
@jeremypw jeremypw force-pushed the jeremypw/fix-actions-with-foreground-process branch from 477818d to c177232 Compare December 16, 2024 16:23
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.

The new terminal (v6.3.0) is destroying current process on Ctrl-L Reset action uses Ctrl+K as hotkey
1 participant