Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The cloud icon ☁️ (One-line output) does not displayed correctly in tmux #972

Open
qrockz opened this issue Mar 9, 2024 · 0 comments

Comments

@qrockz
Copy link

qrockz commented Mar 9, 2024

weather2
Problem: a black block appears in status line.

Description:	Linux Mint 21.1
Release:	21.1
Codename:	vera

uname -sp
Linux x86_64

tmux -V
tmux 3.2a

i3 --version
i3 version 4.22-35-g2a4576be

It happens in wezterm and gnome-terminal.
I'm using nerd font. It happens on this specific ☁️ icon combined with text. Other icons seem to work.

Also noteworthy to mention is when I type set-option -gq status-right "☁️aaaa" in tmux and I want to move the cursor to the beginning of the line then the cursor stops after the first char 's' and before 'e'. Outside of tmux the cursor would be right behind the prompt and the icon would displayed correctly (wezterm).

Has this something to do with encoding and how to fix it?

running tmux -u doesn't help

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

My current workaround is to replace the cloud icon with another icon in weather.sh which has no issues in tmux:
curl -s "https://wttr.in/$location?$units&format=$format" | sed "s/[[:space:]]km/km/g" | sed "s/☁️ /💭/g"

EDIT:
☀️ also doesn't like tmux.

workaround weather.sh:
curl -s "https://wttr.in/$location?$units&format=$format" | sed "s/[[:space:]]km/km/g" | sed "s/☁️ /💭/g" | sed "s/☀️ /🌞/g"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant