aboutsummaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-11-16 13:28:59 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-11-16 13:28:59 +0000
commit5ca710d9e3284393dfbd294915e9e4251b0fe728 (patch)
treea7d6dc2e37673d14fe88ec6bf68e644271c67e92 /session.c
parent46f5e42145ed34567b29c73032adbd8a41f5dfa2 (diff)
downloadrtmux-5ca710d9e3284393dfbd294915e9e4251b0fe728.tar.gz
rtmux-5ca710d9e3284393dfbd294915e9e4251b0fe728.tar.bz2
rtmux-5ca710d9e3284393dfbd294915e9e4251b0fe728.zip
Disable UTF-8 by default and add options to enable it.
Diffstat (limited to 'session.c')
-rw-r--r--session.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/session.c b/session.c
index 32e595d6..d3af7388 100644
--- a/session.c
+++ b/session.c
@@ -1,4 +1,4 @@
-/* $Id: session.c,v 1.45 2008-11-16 10:10:26 nicm Exp $ */
+/* $Id: session.c,v 1.46 2008-11-16 13:28:59 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -209,6 +209,8 @@ session_new(struct session *s, const char *name, const char *cmd, int idx)
if (options_get_number(&s->options, "remain-by-default"))
w->flags |= WINDOW_ZOMBIFY;
+ if (options_get_number(&s->options, "utf8-default"))
+ w->flags |= WINDOW_UTF8;
return (session_attach(s, w, idx));
}