mirror of https://github.com/mpv-player/mpv
vo_{tct,sixel,kitty}: implement mouse support
This commit is contained in:
parent
cbc3fb104d
commit
7c6bb9c37b
|
@ -362,6 +362,7 @@ static int preinit(struct vo *vo)
|
|||
#endif
|
||||
|
||||
write_str(TERM_ESC_HIDE_CURSOR);
|
||||
write_str(TERM_ESC_ENABLE_MOUSE);
|
||||
if (p->opts.alt_screen)
|
||||
write_str(TERM_ESC_ALT_SCREEN);
|
||||
|
||||
|
@ -389,6 +390,7 @@ static void uninit(struct vo *vo)
|
|||
#endif
|
||||
|
||||
write_str(TERM_ESC_RESTORE_CURSOR);
|
||||
write_str(TERM_ESC_DISABLE_MOUSE);
|
||||
|
||||
if (p->opts.alt_screen) {
|
||||
write_str(TERM_ESC_NORMAL_SCREEN);
|
||||
|
|
|
@ -520,6 +520,7 @@ static int preinit(struct vo *vo)
|
|||
sixel_strwrite(TERM_ESC_ALT_SCREEN);
|
||||
|
||||
sixel_strwrite(TERM_ESC_HIDE_CURSOR);
|
||||
sixel_strwrite(TERM_ESC_ENABLE_MOUSE);
|
||||
|
||||
/* don't use private color registers for each frame. */
|
||||
sixel_strwrite(TERM_ESC_USE_GLOBAL_COLOR_REG);
|
||||
|
@ -559,6 +560,7 @@ static void uninit(struct vo *vo)
|
|||
struct priv *priv = vo->priv;
|
||||
|
||||
sixel_strwrite(TERM_ESC_RESTORE_CURSOR);
|
||||
sixel_strwrite(TERM_ESC_DISABLE_MOUSE);
|
||||
|
||||
if (priv->opts.alt_screen)
|
||||
sixel_strwrite(TERM_ESC_NORMAL_SCREEN);
|
||||
|
|
|
@ -299,6 +299,7 @@ static void flip_page(struct vo *vo)
|
|||
static void uninit(struct vo *vo)
|
||||
{
|
||||
WRITE_STR(TERM_ESC_RESTORE_CURSOR);
|
||||
WRITE_STR(TERM_ESC_DISABLE_MOUSE);
|
||||
WRITE_STR(TERM_ESC_NORMAL_SCREEN);
|
||||
struct priv *p = vo->priv;
|
||||
talloc_free(p->frame);
|
||||
|
@ -328,6 +329,7 @@ static int preinit(struct vo *vo)
|
|||
}
|
||||
|
||||
WRITE_STR(TERM_ESC_HIDE_CURSOR);
|
||||
WRITE_STR(TERM_ESC_ENABLE_MOUSE);
|
||||
WRITE_STR(TERM_ESC_ALT_SCREEN);
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue