> I'm packing your very useful program for debian [1].
Great.
> While doing so I wondered myself if there is any plan to support a global
> config file, for example /etc/tmux.conf such that some option don't have to be
> set up for each user.
I'm not sure about this, tmux is an individual user program and the config file
is pretty much just preferences (no policy stuff) so I'm not convinced
system-wide settings are appropriate. I'll think about it. It probably wouldn't
do any actual harm.
> This idea emerges to me because in debian all programs should support utf8 by
> default.
tmux does support UTF-8 by default, you just need to turn it on. In fact, it is
not possible to build tmux without UTF-8 support. Are you sure it both has to
be supported and turned on by default?
> First in the current release 0.8 one has to set "setw -g utf8 on" in
> ~/.tmux.conf and second start tmux with parameter "-u" (I circumvent this with
> an alias). Is there any chance that utf8 could be the default encoding? I
At the moment UTF-8 can't be the default, as far as I have been able to
discover so far there is no way to detect if a terminal supports UTF-8, and
since most terminals don't support UTF-8 there would be lots of problems if it
was on by default.
This is why you need to tell tmux that your terminal supports it by using
-u. If it assumed UTF-8 then mixing UTF-8 and non-UTF-8 terminals would get
messy.
I don't particularly like having to use -u but I don't see a way around it that
won't end up with things broken by default (at least now if it is wrong it is
because the user told it to be), and an alias isn't a big deal for people who
are always using a UTF-8 terminal. I'll have another look see if I can come up
with something better.
-- Nicholas
|