mirror of
https://github.com/tmux/tmux.git
synced 2024-11-17 09:58:52 +00:00
Turn mouse on/off as appropriate.
This commit is contained in:
parent
043514a834
commit
77386db04b
5
screen.c
5
screen.c
@ -1,4 +1,4 @@
|
|||||||
/* $Id: screen.c,v 1.52 2007-11-27 21:07:38 nicm Exp $ */
|
/* $Id: screen.c,v 1.53 2007-11-28 08:20:41 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -321,6 +321,7 @@ screen_draw_start(struct screen_draw_ctx *ctx, struct screen *s,
|
|||||||
|
|
||||||
ctx->write(ctx->data, TTY_SCROLLREGION, 0, screen_last_y(s));
|
ctx->write(ctx->data, TTY_SCROLLREGION, 0, screen_last_y(s));
|
||||||
ctx->write(ctx->data, TTY_CURSOROFF);
|
ctx->write(ctx->data, TTY_CURSOROFF);
|
||||||
|
ctx->write(ctx->data, TTY_MOUSEOFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set offset. */
|
/* Set offset. */
|
||||||
@ -412,6 +413,8 @@ screen_draw_stop(struct screen_draw_ctx *ctx)
|
|||||||
if (s->mode & MODE_CURSOR)
|
if (s->mode & MODE_CURSOR)
|
||||||
ctx->write(ctx->data, TTY_CURSORON);
|
ctx->write(ctx->data, TTY_CURSORON);
|
||||||
}
|
}
|
||||||
|
if (s->mode & MODE_MOUSE)
|
||||||
|
ctx->write(ctx->data, TTY_MOUSEON);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Insert lines. */
|
/* Insert lines. */
|
||||||
|
Loading…
Reference in New Issue
Block a user