very odd problem with U+FE0F
Hi George
Bit of an odd one...
When I send this character
printf '\033[?1049h\033[H\033[2J'
printf '\033[44m\342\230\201\357\270\217\033[0m\n'
sleep 2
printf '\033[?1049l\033[H\033[2J'
printf '\033[44m\342\230\201\357\270\217\033[0m\n'
sleep 2
And see this video, note the blue background only covers the first cell after 1049h and both after 1049l:
Screen Recording 2024-03-06 at 22.42.42.mov
If I add an additional character (so, for example printf '\033[43m\342\230\201\357\270\217a\033[0m\n
), outside the alternate screen it is printed, but inside it overprints the second half of the emoji. So it seems like in the alternate screen iTerm2 is not moving the cursor to the end of the emoji character.
Unfortunately, it seems like other terminals always behave like iTerm2 does inside the alternate screen (only colour first cell and only move cursor by 1), so it that might be the "usual" behaviour, even though it seems kind of silly.
iTerm2 3.5.20240306-nightly
Darwin macbook-pro 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:28:58 PST 2023; root:xnu-10002.81.5~7/RELEASE_X86_64 x86_64