From 4428987e955da1c56d1fcd98d2130f6a02738f1a Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 28 Jan 2009 19:52:21 +0000 Subject: * 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). --- screen-write.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'screen-write.c') diff --git a/screen-write.c b/screen-write.c index 3d534920..14c52d0b 100644 --- a/screen-write.c +++ b/screen-write.c @@ -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 @@ -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 -- cgit