Capture all mouse events and take into account mouse attributes, fixes #58

This commit is contained in:
Yohann D'ANELLO
2021-01-08 11:21:40 +01:00
parent b42f1277b1
commit 75e93611c3
7 changed files with 27 additions and 21 deletions

View File

@ -21,7 +21,7 @@ class TermManager: # pragma: no cover
# make cursor invisible
curses.curs_set(False)
# Catch mouse events
curses.mousemask(True)
curses.mousemask(curses.ALL_MOUSE_EVENTS | curses.REPORT_MOUSE_POSITION)
# Enable colors
curses.start_color()