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.
This commit is contained in:
William Carroll 2019-03-24 16:07:55 +00:00
parent 362a623a0a
commit 7b46b6bfe1
3 changed files with 19 additions and 0 deletions

View file

@ -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'

View file

@ -40,6 +40,15 @@ bright_magenta='\u001b[35;1m'
bright_cyan='\u001b[36;1m'
bright_white='\u001b[37;1m'
# some of my favorite emojis as unicode
facepalm='\U1F926'
eyeroll='\U1F644'
sheesh='\U1F62C'
see_no_evil='\U1F648'
blush='\U1F60A'
wink='\U1F609'
laugh='\U1F923'
# commonly used config files
v="$HOME/.config/nvim/init.vim"
e="$HOME/.emacs.d/init.el"