diff options
Diffstat (limited to 'video/out/vo_sixel.c')
-rw-r--r-- | video/out/vo_sixel.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/video/out/vo_sixel.c b/video/out/vo_sixel.c index e05c45582d..ba5341b54a 100644 --- a/video/out/vo_sixel.c +++ b/video/out/vo_sixel.c @@ -35,10 +35,6 @@ #include "video/sws_utils.h" #include "video/mp_image.h" -#if HAVE_POSIX -#include <unistd.h> -#endif - #define IMGFMT IMGFMT_RGB24 #define TERM_ESC_USE_GLOBAL_COLOR_REG "\033[?1070l" @@ -520,6 +516,7 @@ static int preinit(struct vo *vo) sixel_strwrite(TERM_ESC_ALT_SCREEN); sixel_strwrite(TERM_ESC_HIDE_CURSOR); + terminal_set_mouse_input(true); /* don't use private color registers for each frame. */ sixel_strwrite(TERM_ESC_USE_GLOBAL_COLOR_REG); @@ -559,6 +556,7 @@ static void uninit(struct vo *vo) struct priv *priv = vo->priv; sixel_strwrite(TERM_ESC_RESTORE_CURSOR); + terminal_set_mouse_input(false); if (priv->opts.alt_screen) sixel_strwrite(TERM_ESC_NORMAL_SCREEN); |