aboutsummaryrefslogtreecommitdiff
path: root/screen-write.c
diff options
context:
space:
mode:
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c12
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