We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53db2ee commit c329f8bCopy full SHA for c329f8b
main.go
@@ -12,6 +12,7 @@ import (
12
"io"
13
"os"
14
"os/exec"
15
+ "runtime"
16
"slices"
17
"strings"
18
"syscall"
@@ -214,7 +215,11 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
214
215
return m, nil
216
case "ctrl+x":
217
if m.taskRunning {
- err := syscall.Kill(-m.command.Process.Pid, syscall.SIGINT)
218
+ sig := syscall.SIGINT
219
+ if runtime.GOOS == "windows" {
220
+ sig = syscall.SIGKILL
221
+ }
222
+ err := syscall.Kill(-m.command.Process.Pid, sig)
223
if err != nil {
224
m.appendErrorMsg("Error cancelling task: " + err.Error())
225
0 commit comments