diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-27 21:39:15 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-27 21:39:15 +0000 |
commit | c1726281c925cbc0b6828a4cf41f7a300afc5901 (patch) | |
tree | 2025cffae566f7a883a38cc9b4eccbe13f65a8ee /screen-write.c | |
parent | eafc1693aeb41c22fa7980711f3a89ff2d098cdb (diff) | |
download | rtmux-c1726281c925cbc0b6828a4cf41f7a300afc5901.tar.gz rtmux-c1726281c925cbc0b6828a4cf41f7a300afc5901.tar.bz2 rtmux-c1726281c925cbc0b6828a4cf41f7a300afc5901.zip |
Handle cursor on/off better.
Diffstat (limited to 'screen-write.c')
-rw-r--r-- | screen-write.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/screen-write.c b/screen-write.c index 9c3b6654..3d534920 100644 --- a/screen-write.c +++ b/screen-write.c @@ -1,4 +1,4 @@ -/* $Id: screen-write.c,v 1.29 2009-01-26 20:57:44 nicm Exp $ */ +/* $Id: screen-write.c,v 1.30 2009-01-27 21:39:14 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -33,13 +33,11 @@ screen_write_start( ctx->data = wp; if (ctx->s == NULL) ctx->s = wp->screen; + tty_write_cursor_off(ctx->data); } else { ctx->write = NULL; ctx->data = NULL; } - - if (ctx->write != NULL) - ctx->write(ctx->data, TTY_CURSORMODE, 0); } /* Finish writing. */ @@ -430,9 +428,6 @@ screen_write_kcursormode(struct screen_write_ctx *ctx, int state) { struct screen *s = ctx->s; - if (ctx->write != NULL) - ctx->write(ctx->data, TTY_KCURSORMODE); - if (state) s->mode |= MODE_KCURSOR; else @@ -445,9 +440,6 @@ screen_write_kkeypadmode(struct screen_write_ctx *ctx, int state) { struct screen *s = ctx->s; - if (ctx->write != NULL) - ctx->write(ctx->data, TTY_KKEYPADMODE); - if (state) s->mode |= MODE_KKEYPAD; else |