mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-11 08:10:54 +00:00
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)
|
|
}
|