1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-25 22:33:52 +03:00
wezterm/test-data/emoji-presentation.sh
Wez Furlong 5f2c905db8 shaping: feed presentation width from the terminal through to glyph info
This allows unicode_version to be respected again when rendering.

The updated emoji-presentation.sh script now highlights this slightly
better by putting `.` characters after the emoji; unicode version 14
emoji presentation will show the `.` in the 3rd column, while earlier
versions will show it in the 2nd column for glyphs that are sensitive
to the version.

refs: #1607
refs: #1563
2022-02-01 09:23:57 -07:00

29 lines
1007 B
Bash
Executable File

#!/bin/zsh
# Save initial unicode version
local label=$(uuidgen)
printf "\e]1337;UnicodeVersion=push %s\e\\" $label
for version in 9 14 ; do
echo "\n### Unicode Version $version\n"
printf "\e]1337;UnicodeVersion=$version\e\\"
echo -e "\u270c. Victory hand, text presentation by default"
echo -e "\u270c\ufe0e. Victory hand, explicit text presentation"
echo -e "\u270c\ufe0f. Victory hand, explicit emoji presentation"
echo -e "\u270a. Raised fist, emoji presentation by default"
echo -e "\u270a\ufe0e. Raised fist, explicit text presentation (invalid; no effect)"
echo -e "\u270a\ufe0f. Raised fist, explicit emoji presentation"
echo -e "\u2716. Multiply, text presentation by default"
echo -e "\u2716\ufe0e. Multiply, explicit text presentation"
echo -e "\u2716\ufe0f. Multiply, explicit emoji presentation"
echo -e "\U0001F468\u200D\U0001F467\u200D\U0001F466"
echo "👨\n12"
done
# Restore saved unicode version
printf "\e]1337;UnicodeVersion=pop %s\e\\" $label