nordtheme / tmux

An arctic, north-bluish clean and elegant tmux color theme.
https://www.nordtheme.com/ports/tmux
MIT License
1.07k stars 141 forks source link

rxvt-unicode + tmux + nord #18

Closed bigDaddyS1oth closed 6 years ago

bigDaddyS1oth commented 6 years ago

So I saw this theme series and thought I'd start installing some of the theme, and I installed the tmux theme and the only issue I'm having now is this.

I'm not entirely sure what I'd need to give you for this, but here's my tmux.conf.

I want to say it's an issue with line 84

set -g default-terminal "screen-256color"

or that I need to specify for tmux to use UTF-8?

or does the styling in the nord plugin not work with rxvt-unicode?

delphinus commented 6 years ago

You mean, your problem is the square glyphs (so-called “Tofu”) in the statusline? You should set Powerline-style patched font in the setting of terminal app (rxvt). What font are you using?

And you can use non-patched font with set -g @nord_tmux_no_patched_font "1" option. It simply removes the “Tofu”s.

arcticicestudio commented 6 years ago

@bigDaddyS1oth Any progress, have you been able to fix the problem with the instructions posted by @delphinus?

If the problem is still present you can try to add the following to your ~/.tmux.conf file:

setw -g utf8 on
set -g status-utf8 on
bigDaddyS1oth commented 6 years ago

Oh my god, so sorry.

Well I had DejaVu Sans Mono as my fonts in my ~/.Xresources file, and I don't recall if I've had issues with unicode characters when using it. I just tried switching to Source Code Pro, and the ">"-esque parts of the TMUX status bar are there, but not some miscellaneous characters (they show up as "[]"). I'll try adding those options to my ~/.tmux.conf

EDIT 1: Yea running tmux source-file ~/.tmux.conf puts out

invalid option: utf8
invalid option: status-utf8

Setting the font to Hack just has 1 [] between the date and time. If it helps, here's my ~/.Xresources. And locale returns

LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE=C
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Also the setw -g utf8 on and set -g status-utf8 on are depreciated.

EDIT 2:

Oh wait...I still have the font as Hack and I changed to font size from 14 to 15 and the "<"-esque icon between the date and time is there now......huh. Same thing works when changing the font to SourceCode Pro.....weird.

arcticicestudio commented 6 years ago

Nice to hear that you fixed it. Sadly rxvt is known to make problems when it comes to encoding and also color (e.g. TrueColor support). Maybe rxvt only supports fixed size glyphs which are available in the installed font at size 15.

I'll close this for now. Feel free to reopen or post here if you've been able to chase down the origin of the problem.