* 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
20 lines
314 B
Go
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()
|
|
}
|