diff options
author | William Carroll <wpcarro@gmail.com> | 2019-03-24T16·07+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2019-03-24T16·09+0000 |
commit | 7b46b6bfe1bfb26eff3e88947835273ca13d19b8 (patch) | |
tree | b7d7198a9283e827b5029e806826b6860d39b712 /configs/shared/zsh/functions.zsh | |
parent | 362a623a0a4ae5e8fc92fd2b44eca36e7f47cccb (diff) |
Adds emoji font and function to test emoji support
In my quest to learn more about terminals, I added a function to output ten emojis. Technically this tests the same thing as test_unicode. Unfortunately I couldn't get `st` to output any colored emojis. This is a bit of a buzzkill for my grand plans to create a terminal-based chat client that supports emojis.
Diffstat (limited to 'configs/shared/zsh/functions.zsh')
-rw-r--r-- | configs/shared/zsh/functions.zsh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configs/shared/zsh/functions.zsh b/configs/shared/zsh/functions.zsh index 3bf892355a92..4a0ee94b2926 100644 --- a/configs/shared/zsh/functions.zsh +++ b/configs/shared/zsh/functions.zsh @@ -303,6 +303,16 @@ test_unicode() { echo -e '\u26FD \u26FE \u26FF' } +test_emojis() { + # Outputs a few emojis to see if your terminal supports colored or + # monochromatic emojis. + for n in {0..9} + do + echo -e -n "\U1F60$n" + done + echo # newline to clean output +} + path() { # Pretty-print the $PATH variable echo "$PATH" | tr : '\n' |