vo_{tct,sixel,kitty}: implement mouse support

This commit is contained in:
nanahi 2024-03-02 01:11:44 -05:00 committed by Kacper Michajłow
parent cbc3fb104d
commit 7c6bb9c37b
3 changed files with 6 additions and 0 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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;