aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-06-19 23:07:11 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-06-19 23:07:11 +0000
commit7cebf4768b90bd004eadcec4eb7ff67d6868183f (patch)
treecb71933a80bebe19927c0fdfafbc7c2d4221d916 /tty.c
parentead089ece62c00ec5c2c4b012a5ff2eecef6a7b3 (diff)
downloadrtmux-7cebf4768b90bd004eadcec4eb7ff67d6868183f.tar.gz
rtmux-7cebf4768b90bd004eadcec4eb7ff67d6868183f.tar.bz2
rtmux-7cebf4768b90bd004eadcec4eb7ff67d6868183f.zip
Hide cursor with flag.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tty.c b/tty.c
index 424951f3..503ea365 100644
--- a/tty.c
+++ b/tty.c
@@ -1,4 +1,4 @@
-/* $Id: tty.c,v 1.28 2008-06-18 22:21:51 nicm Exp $ */
+/* $Id: tty.c,v 1.29 2008-06-19 23:07:11 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -79,6 +79,8 @@ tty_open(struct tty *tty, char **cause)
tty->attr = 0;
tty->colr = 0x70;
+ tty->flags = 0;
+
tty_keys_init(tty);
tty_fill_acs(tty);
@@ -493,7 +495,7 @@ tty_vwrite(struct tty *tty, struct screen *s, int cmd, va_list ap)
}
break;
case TTY_CURSORON:
- if (cursor_normal != NULL)
+ if (!(tty->flags & TTY_NOCURSOR) && cursor_normal != NULL)
tty_puts(tty, cursor_normal);
break;
case TTY_CURSOROFF: