mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-27 16:03:23 +00:00
fix: handle ctrl c properly when not interactive
This commit is contained in:
parent
2cf979401b
commit
b008d48c60
3
main.go
3
main.go
@ -262,6 +262,9 @@ func HandleSignals() {
|
||||
|
||||
for range c {
|
||||
if !running {
|
||||
if !interactive {
|
||||
os.Exit(0)
|
||||
}
|
||||
lr.ClearInput()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user