Skip to content

Commit

Permalink
enhanced mouse tracking mode (1006) is set improperly when exiting tc…
Browse files Browse the repository at this point in the history
…ell (#512)
  • Loading branch information
tmatz committed Mar 13, 2022
1 parent fba1334 commit 2a1a1b5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tscreen.go
Expand Up @@ -948,8 +948,9 @@ func (t *tScreen) enableMouse(f MouseFlags) {
if f&MouseMotionEvents != 0 {
t.TPuts("\x1b[?1003h")
}

t.TPuts("\x1b[?1006h")
if f&(MouseButtonEvents|MouseDragEvents|MouseMotionEvents) != 0 {
t.TPuts("\x1b[?1006h")
}
}

}
Expand Down

0 comments on commit 2a1a1b5

Please sign in to comment.