Skip to content

Commit

Permalink
Save history and restore terminal state on Ctrl-C
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanizag committed Sep 4, 2021
1 parent 6b97f1e commit abecb73
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ func handleControlC(env *environment) {
signal.Notify(c, os.Interrupt, syscall.SIGTERM)
go func() {
<-c
fmt.Println("\r- Ctrl+C pressed in Terminal")
env.close()
os.Exit(0)
}()
Expand Down

0 comments on commit abecb73

Please sign in to comment.