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 /server.c | |
parent | eafc1693aeb41c22fa7980711f3a89ff2d098cdb (diff) | |
download | rtmux-c1726281c925cbc0b6828a4cf41f7a300afc5901.tar.gz rtmux-c1726281c925cbc0b6828a4cf41f7a300afc5901.tar.bz2 rtmux-c1726281c925cbc0b6828a4cf41f7a300afc5901.zip |
Handle cursor on/off better.
Diffstat (limited to 'server.c')
-rw-r--r-- | server.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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. */ |