diff --git a/tscreen.go b/tscreen.go index 2c161cc1..62f455c2 100644 --- a/tscreen.go +++ b/tscreen.go @@ -948,8 +948,9 @@ func (t *tScreen) enableMouse(f MouseFlags) { if f&MouseMotionEvents != 0 { t.TPuts("\x1b[?1003h") } - - t.TPuts("\x1b[?1006h") + if f != 0 { + t.TPuts("\x1b[?1006h") + } } }