Allow Ctrl+C to drop buffered output as an option #23666

Closed
opened 2026-01-31 08:48:39 +00:00 by claunia · 1 comment
Owner

Originally created by @cebaa on GitHub (Oct 7, 2025).

Description of the new feature

When a process outputs a lot of output, Ctrl+C doesn't stop it from printing until everything is printed, which in some cases (e.g. when running processes through ssh) can be a lot. It would be good to add an option for Ctrl+C to drop anything buffered so far in addition to sending Ctrl+C to the running process.

Proposed technical implementation details

No response

Originally created by @cebaa on GitHub (Oct 7, 2025). ### Description of the new feature When a process outputs a lot of output, Ctrl+C doesn't stop it from printing until everything is printed, which in some cases (e.g. when running processes through ssh) can be a lot. It would be good to add an option for Ctrl+C to drop anything buffered so far in addition to sending Ctrl+C to the running process. ### Proposed technical implementation details _No response_
claunia added the Issue-FeatureNeeds-TriageNeeds-Tag-Fix labels 2026-01-31 08:48:39 +00:00
Author
Owner

@DHowett commented on GitHub (Oct 7, 2025):

Unfortunately, the buffers that are filling up and draining slowly are very likely not the ones under our control. Ctrl+C already sends a signal to local applications, interrupting what they're doing, which affords them an opportunity to drop their own buffers. Once those applications call WriteConsole, we do not buffer.

@DHowett commented on GitHub (Oct 7, 2025): Unfortunately, the buffers that are filling up and draining slowly are very likely not the ones under our control. <kbd>Ctrl+C</kbd> already sends a signal to local applications, interrupting what they're doing, which affords them an opportunity to drop their own buffers. Once those applications call `WriteConsole`, we do not buffer.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23666