aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-09-23 14:33:13 +0000
committerTiago Cunha <tcunha@gmx.com>2009-09-23 14:33:13 +0000
commitc40d8cbda4c391008b4c46d211d6f3c09accd81a (patch)
treef8d39789a400e258c9bdba0f6909ec0029aabbce
parent07bd160861a2edcc5a76afba1c90af92f1771986 (diff)
downloadrtmux-c40d8cbda4c391008b4c46d211d6f3c09accd81a.tar.gz
rtmux-c40d8cbda4c391008b4c46d211d6f3c09accd81a.tar.bz2
rtmux-c40d8cbda4c391008b4c46d211d6f3c09accd81a.zip
Sync OpenBSD patchset 344:
Be more careful about what flags are cleared when opening the terminal, otherwise the opened/started flags are cleared and the terminal never released.
-rw-r--r--tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tty.c b/tty.c
index 339826e8..4d18b8b3 100644
--- a/tty.c
+++ b/tty.c
@@ -1,4 +1,4 @@
-/* $Id: tty.c,v 1.132 2009-09-11 14:13:52 tcunha Exp $ */
+/* $Id: tty.c,v 1.133 2009-09-23 14:33:13 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -93,7 +93,7 @@ tty_open(struct tty *tty, const char *overrides, char **cause)
tty->in = buffer_create(BUFSIZ);
tty->out = buffer_create(BUFSIZ);
- tty->flags &= TTY_UTF8;
+ tty->flags &= ~(TTY_NOCURSOR|TTY_FREEZE|TTY_ESCAPE);
tty_start_tty(tty);