aboutsummaryrefslogtreecommitdiff
path: root/screen-write.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-01-28 19:52:21 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-01-28 19:52:21 +0000
commit4428987e955da1c56d1fcd98d2130f6a02738f1a (patch)
treec17e6a8d9d907c28c39039346cf99d54a3cf4b93 /screen-write.c
parent70024b3685126195994313790c26359236889485 (diff)
downloadrtmux-4428987e955da1c56d1fcd98d2130f6a02738f1a.tar.gz
rtmux-4428987e955da1c56d1fcd98d2130f6a02738f1a.tar.bz2
rtmux-4428987e955da1c56d1fcd98d2130f6a02738f1a.zip
* 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).
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c10
1 files changed, 2 insertions, 8 deletions
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 <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