From c1726281c925cbc0b6828a4cf41f7a300afc5901 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 27 Jan 2009 21:39:15 +0000 Subject: Handle cursor on/off better. --- screen-write.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'screen-write.c') 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 @@ -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 -- cgit