Skip to content

Commit

Permalink
disable mouse and give buffers time to remove all commands from termi…
Browse files Browse the repository at this point in the history
…nal, before exit
  • Loading branch information
hanspr committed Sep 2, 2021
1 parent a24af83 commit 361348b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mi-ide.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,8 @@ func loadAll() {
// Finish One Place Global Exit
// to control anything that could be necessary (to have a clean exit) in a single point
func Finish(status int) {
screen.DisableMouse()
time.Sleep(100 * time.Millisecond)
if cursorHadColor {
screen.SetCursorColorShape("white", "")
}
Expand Down

0 comments on commit 361348b

Please sign in to comment.