You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Hilbish/signal_windows.go

24 lines
298 B

// +build windows
package main
import (
"os"
"os/signal"
)
func handleSignals() {
c := make(chan os.Signal)
signal.Notify(c, os.Interrupt)
for s := range c {
switch s {
case os.Interrupt:
hooks.Emit("signal.sigint")
if !running && interactive {
lr.ClearInput()
}
}
}
}