copying text for CLI program kills program #17688

Open
opened 2026-01-31 05:50:19 +00:00 by claunia · 0 comments
Owner

Originally created by @jredfox on GitHub (Jun 12, 2022).

Windows Terminal version

No response

Windows build number

No response

Other Software

java or any cli program

Steps to reproduce

steps to reproduce. create a simple java program a dummy program for testing

public static void main(String[] args)
{
   while(true);
}

run

wt new-tab java -jar myprogram.jar

hit control+c

notice the app is dead. the user was simply trying to copy and paste previous output and the program died. right clicking to copy something in wt isn't possible and most people are use to using control+c for copy as it is everywhere else in windows.

Expected Behavior

app stays alive and text is copied to the clipboard

Actual Behavior

app dies

Solution

use a different keybind to close the process like control+fn+c or control+alt+c

Originally created by @jredfox on GitHub (Jun 12, 2022). ### Windows Terminal version _No response_ ### Windows build number _No response_ ### Other Software java or any cli program ### Steps to reproduce steps to reproduce. create a simple java program a dummy program for testing ```java public static void main(String[] args) { while(true); } ```` run ``` wt new-tab java -jar myprogram.jar ``` hit control+c notice the app is dead. the user was simply trying to copy and paste previous output and the program died. right clicking to copy something in wt isn't possible and most people are use to using control+c for copy as it is everywhere else in windows. ### Expected Behavior app stays alive and text is copied to the clipboard ### Actual Behavior app dies ### Solution use a different keybind to close the process like control+fn+c or control+alt+c
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#17688