dive/runtime/ui/job_control_unix.go
Alex Goodman d5e8a92968
Rework CI validation workflow and makefile (#460)
* rework CI validation workflow and makefile

* enable push

* fix job names

* fix license check

* fix snapshot builds

* fix acceptance tests

* fix linting

* disable pull request event

* rework windows runner caching

* disable release pipeline and add issue templates
2023-07-06 22:01:46 -04:00

20 lines
314 B
Go

//go:build !windows
// +build !windows
package ui
import (
"syscall"
"github.com/awesome-gocui/gocui"
)
// handle ctrl+z
func handle_ctrl_z(g *gocui.Gui, v *gocui.View) error {
gocui.Suspend()
if err := syscall.Kill(syscall.Getpid(), syscall.SIGSTOP); err != nil {
return err
}
return gocui.Resume()
}