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

User-defined Commands does not work well with Ctrl+C #1331

Closed
pjw91 opened this issue May 1, 2024 · 0 comments
Closed

User-defined Commands does not work well with Ctrl+C #1331

pjw91 opened this issue May 1, 2024 · 0 comments

Comments

@pjw91
Copy link

pjw91 commented May 1, 2024

Given a script/command that runs in the foreground and execute it via tig "User-defined Commands", when pressing Ctrl+C, both the script and tig exit.

It is possible that Ctrl+C only terminates the script while keep tig running?

example script:

while true; do
  sleep 1
  echo yes
done

example .tigrc: bind generic + !./script

@pjw91 pjw91 changed the title User-defined Commands does not work with Ctrl+C User-defined Commands does not work well with Ctrl+C May 1, 2024
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

No branches or pull requests

1 participant