22 lines
332 B
Go
22 lines
332 B
Go
|
// +build !windows
|
||
|
|
||
|
package fzf
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
"os/signal"
|
||
|
"syscall"
|
||
|
)
|
||
|
|
||
|
func notifyOnResize(resizeChan chan<- os.Signal) {
|
||
|
signal.Notify(resizeChan, syscall.SIGWINCH)
|
||
|
}
|
||
|
|
||
|
func notifyStop(p *os.Process) {
|
||
|
p.Signal(syscall.SIGSTOP)
|
||
|
}
|
||
|
|
||
|
func notifyOnCont(resizeChan chan<- os.Signal) {
|
||
|
signal.Notify(resizeChan, syscall.SIGCONT)
|
||
|
}
|