diff options
| -rw-r--r-- | map.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -515,7 +515,8 @@ void map_editor(Map *map, size_t *width, size_t *height, Position *start, Positi print_message(*height); MEVENT event; - mousemask(ALL_MOUSE_EVENTS | REPORT_MOUSE_POSITION, NULL); + mmask_t oldmask; + mousemask(ALL_MOUSE_EVENTS | REPORT_MOUSE_POSITION, &oldmask); mouseinterval(0); printf("\033[?1003h\n"); /* Makes the terminal report mouse movements */ @@ -754,6 +755,7 @@ void map_editor(Map *map, size_t *width, size_t *height, Position *start, Positi } } + mousemask(oldmask, NULL); printf("\033[?1003l\n"); /* Makes the terminal NOT report mouse movements */ } |
