diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-09-22 19:11:53 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-09-22 19:11:53 +0000 |
commit | 6eaaf1a0abdc9cdb826fa3c1017e05ae648671be (patch) | |
tree | 3dae2cc61957869b252f682843bb219ce446b59f | |
parent | 29b5fe1f11dd66f7aa21d666baa9eb162e6ded0b (diff) |
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-- | usr.bin/tmux/tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index 755f4c9da5c..f3e82703fb3 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.28 2009/09/10 17:16:24 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.29 2009/09/22 19:11:52 nicm 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); |