[PR #816] [CLOSED] Introduce stopOnCtrlC in application. #1051

Closed
opened 2026-03-04 01:09:12 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/rivo/tview/pull/816
Author: @gizahNL
Created: 2/23/2023
Status: Closed

Base: masterHead: control_c_event_passage


📝 Commits (1)

  • 225d47f Introduce 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.

## 📋 Pull Request Information **Original PR:** https://github.com/rivo/tview/pull/816 **Author:** [@gizahNL](https://github.com/gizahNL) **Created:** 2/23/2023 **Status:** ❌ Closed **Base:** `master` ← **Head:** `control_c_event_passage` --- ### 📝 Commits (1) - [`225d47f`](https://github.com/rivo/tview/commit/225d47f0f22322295f12b0ab04e5e4410c563193) Introduce stopOnCtrlC in application. ### 📊 Changes **1 file changed** (+14 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `application.go` (+14 -1) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 01:09:12 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#1051
No description provided.