Reputation: 629
as Ctrl+C copies the current selection rather than killing the current application in ConEmu, I wonder how to do the latter now. I know that there is Ctrl+Alt+Break (Terminate (kill) active process in the current console: Close(1)), but does this behave the same as pressing Ctrl+C in a plain old cmd.exe window? AFAIK Ctrl+C usually sends SIGINT (or whatever windows has instead) prior to killing the window so that the application can exit voluntarily.
Thanks!
Upvotes: 1
Views: 871
Reputation: 1
The above answer from Henning is right, with Break(1) sends CTRL+BREAK instead of CTRL+C. More observation from me:
1] Tried with the following:
Ran: ping -t localhost Break(1) will be received by ping and it stays running. Break(0) will stop the ping.
Per doc: https://conemu.github.io/en/GuiMacro.html // ConEmu | GuiMacro - Syntax, Functions, Examples
Break([[,]])
With CTRL+C, the running app is killed unconditionally. With CTRL+BREAK, the running app can choose to exit voluntarily or keep running.
2] Close(1) will prompt to show the process ID (i.e. pid), and wait for your confirmation. If you don’t want the confirmation, you can assign a Macro with “Close(1,1)” and assign a hotkey.
Upvotes: 0
Reputation: 629
The solution is to assign the hotkey Ctrl+C to an arbitrary macro (01-32) that is configured to run "Break(1)":
The existing binding of Ctrl+C to the "Copy" command must be removed.
Upvotes: 1