fix: handle ctrl c properly when not interactive

dev
sammyette 2021-10-18 12:12:54 -04:00
parent 2cf979401b
commit b008d48c60
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5
1 changed files with 3 additions and 0 deletions

View File

@ -262,6 +262,9 @@ func HandleSignals() {
for range c { for range c {
if !running { if !running {
if !interactive {
os.Exit(0)
}
lr.ClearInput() lr.ClearInput()
} }
} }