1
0
mirror of https://github.com/gdamore/tcell.git synced 2025-04-24 13:48:51 +08:00

enhanced mouse tracking mode (1006) is set improperly when exiting tcell (#512)

This commit is contained in:
MATSUDA Takashi 2022-03-14 05:30:54 +09:00 committed by GitHub
parent fba1334b37
commit 2a1a1b5864
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")
}
}
}