wttr.in icon indicating copy to clipboard operation
wttr.in copied to clipboard

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

Open qrockz opened this issue 11 months ago • 0 comments

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"

qrockz avatar Mar 09 '24 19:03 qrockz