mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[PR #816] [CLOSED] Introduce stopOnCtrlC in application. #1051
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#1051
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rivo/tview/pull/816
Author: @gizahNL
Created: 2/23/2023
Status: ❌ Closed
Base:
master← Head:control_c_event_passage📝 Commits (1)
225d47fIntroduce stopOnCtrlC in application.📊 Changes
1 file changed (+14 additions, -1 deletions)
View changed files
📝
application.go(+14 -1)📄 Description
This allows consuming applications signal that they intend to keep running when control+c is pressed, and instead want the event to be handled by their primitives.
My use case is for a window in which I run shell commands; And that I want to cancel via pressing control+c. The current default of stopping on control+c is kept so there should not be any surprises for anyone updating.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.