mirror of https://github.com/Hilbis/Hilbish
fix: change hooks from signals to signal
drop the s, dont remember when i added it it makes more sense and its what the docs have anywaywindows-fixes
parent
e0b84aaff7
commit
9cf03e37c4
8
main.go
8
main.go
|
@ -265,17 +265,17 @@ func handleSignals() {
|
||||||
for s := range c {
|
for s := range c {
|
||||||
switch s {
|
switch s {
|
||||||
case os.Interrupt:
|
case os.Interrupt:
|
||||||
hooks.Em.Emit("signals.sigint")
|
hooks.Em.Emit("signal.sigint")
|
||||||
if !running && interactive {
|
if !running && interactive {
|
||||||
lr.ClearInput()
|
lr.ClearInput()
|
||||||
}
|
}
|
||||||
case syscall.SIGWINCH:
|
case syscall.SIGWINCH:
|
||||||
hooks.Em.Emit("signals.resize")
|
hooks.Em.Emit("signal.resize")
|
||||||
if !running && interactive {
|
if !running && interactive {
|
||||||
lr.Resize()
|
lr.Resize()
|
||||||
}
|
}
|
||||||
case syscall.SIGUSR1: hooks.Em.Emit("signals.sigusr1")
|
case syscall.SIGUSR1: hooks.Em.Emit("signal.sigusr1")
|
||||||
case syscall.SIGUSR2: hooks.Em.Emit("signals.sigusr2")
|
case syscall.SIGUSR2: hooks.Em.Emit("signal.sigusr2")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue