aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-01-27 21:39:15 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-01-27 21:39:15 +0000
commitc1726281c925cbc0b6828a4cf41f7a300afc5901 (patch)
tree2025cffae566f7a883a38cc9b4eccbe13f65a8ee /server.c
parenteafc1693aeb41c22fa7980711f3a89ff2d098cdb (diff)
downloadrtmux-c1726281c925cbc0b6828a4cf41f7a300afc5901.tar.gz
rtmux-c1726281c925cbc0b6828a4cf41f7a300afc5901.tar.bz2
rtmux-c1726281c925cbc0b6828a4cf41f7a300afc5901.zip
Handle cursor on/off better.
Diffstat (limited to 'server.c')
-rw-r--r--server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/server.c b/server.c
index 2ab5951f..460a0e93 100644
--- a/server.c
+++ b/server.c
@@ -1,4 +1,4 @@
-/* $Id: server.c,v 1.112 2009-01-27 19:40:56 nicm Exp $ */
+/* $Id: server.c,v 1.113 2009-01-27 21:39:15 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -713,10 +713,10 @@ server_handle_client(struct client *c)
if (c->prompt_string == NULL && c->message_string == NULL &&
!server_locked && wp->screen->mode & MODE_CURSOR &&
wp->yoff + wp->screen->cy < c->sy - status) {
- tty_write(&c->tty, wp->screen, 0, TTY_CURSORMODE, 1);
+ tty_cursor_on(&c->tty);
tty_cursor(&c->tty, wp->screen->cx, wp->screen->cy, wp->yoff);
} else
- tty_write(&c->tty, wp->screen, 0, TTY_CURSORMODE, 0);
+ tty_cursor_off(&c->tty);
}
/* Lost a client. */