mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 14:27:09 +00:00
* Better support for at least the most common variant of mouse input: parse it and adjust for different panes. Also support mouse in window/session choice mode.
* Bring back the fancy window titles with session/window names: it is easy to work around problems with elinks (see FAQ).
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* $Id: screen-write.c,v 1.30 2009-01-27 21:39:14 nicm Exp $ */
|
||||
/* $Id: screen-write.c,v 1.31 2009-01-28 19:52:21 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -33,7 +33,7 @@ screen_write_start(
|
||||
ctx->data = wp;
|
||||
if (ctx->s == NULL)
|
||||
ctx->s = wp->screen;
|
||||
tty_write_cursor_off(ctx->data);
|
||||
tty_write_update_mode(ctx->data, ctx->s->mode & ~MODE_CURSOR);
|
||||
} else {
|
||||
ctx->write = NULL;
|
||||
ctx->data = NULL;
|
||||
@ -374,9 +374,6 @@ screen_write_insertmode(struct screen_write_ctx *ctx, int state)
|
||||
{
|
||||
struct screen *s = ctx->s;
|
||||
|
||||
if (ctx->write != NULL)
|
||||
ctx->write(ctx->data, TTY_INSERTMODE, state);
|
||||
|
||||
if (state)
|
||||
s->mode |= MODE_INSERT;
|
||||
else
|
||||
@ -389,9 +386,6 @@ screen_write_mousemode(struct screen_write_ctx *ctx, int state)
|
||||
{
|
||||
struct screen *s = ctx->s;
|
||||
|
||||
if (ctx->write != NULL)
|
||||
ctx->write(ctx->data, TTY_MOUSEMODE, state);
|
||||
|
||||
if (state)
|
||||
s->mode |= MODE_MOUSE;
|
||||
else
|
||||
|
Reference in New Issue
Block a user