Skip to content

Instantly share code, notes, and snippets.

@christopheranderton
Last active March 16, 2017 12:17
Show Gist options
  • Save christopheranderton/3f3275f7e9256ed88924b3d9c4669f00 to your computer and use it in GitHub Desktop.
Save christopheranderton/3f3275f7e9256ed88924b3d9c4669f00 to your computer and use it in GitHub Desktop.
Prints a Funky Horizontal Row of a Unicode Character. Includes examples using lolcat and lolcat with animation. Great to add a little bling bling to your shell scripts.
## Prints a Horizontal Row of a Unicode Character
# Screenshot: http://imgur.com/a/Z2nKx
# Use for: Pattern or Separator
# Requirements: tput, Unicode font(s),
# True Color Terminal, LOLCAT (optional)
# Tested on OS X/macOS (10.11.6) and
# Ubuntu Linux (March 2017)
## Example 1 - Normal
printf "%`tput cols`s"|tr ' ' '⥤'
printf "%`tput cols`s"|tr ' ' '⚘'
printf "%`tput cols`s"|tr ' ' '▚'
printf "%`tput cols`s"|tr ' ' '▰'
printf "%`tput cols`s"|tr ' ' '┊'
printf "%`tput cols`s"|tr ' ' '⁜'
printf "%`tput cols`s"|tr ' ' '⋇'
printf "%`tput cols`s"|tr ' ' '▼'
printf "%`tput cols`s"|tr ' ' '▲'
printf "%`tput cols`s"|tr ' ' '▽'
printf "%`tput cols`s"|tr ' ' '⧼'
printf "%`tput cols`s"|tr ' ' '⏚'
printf "%`tput cols`s"|tr ' ' '⌒'
printf "%`tput cols`s"|tr ' ' '⌇'
printf "%`tput cols`s"|tr ' ' '⧴'
printf "%`tput cols`s"|tr ' ' '⧳'
printf "%`tput cols`s"|tr ' ' '❯'
printf "%`tput cols`s"|tr ' ' '❮'
printf "%`tput cols`s"|tr ' ' '✚'
printf "%`tput cols`s"|tr ' ' '✦'
printf "%`tput cols`s"|tr ' ' '❥'
printf "%`tput cols`s"|tr ' ' '✂︎'
## Example 2 - Lolcat True Color
# https://github.com/busyloop/lolcat
# Install Ruby: gem install lolcat
# Install Homebrew: brew install lolcat
printf "%`tput cols`s"|tr ' ' '⥤' | lolcat -F 0.2 -t -i
printf "%`tput cols`s"|tr ' ' '⚘' | lolcat -F 0.2 -t -i
printf "%`tput cols`s"|tr ' ' '▚' | lolcat -F 0.2 -t -i
printf "%`tput cols`s"|tr ' ' '▰' | lolcat -F 0.2 -t -i
printf "%`tput cols`s"|tr ' ' '┊' | lolcat -F 0.2 -t -i
printf "%`tput cols`s"|tr ' ' '⁜' | lolcat -F 0.2 -t -i
printf "%`tput cols`s"|tr ' ' '⋇' | lolcat -F 0.2 -t -i
printf "%`tput cols`s"|tr ' ' '▼' | lolcat -F 0.2 -t -i
printf "%`tput cols`s"|tr ' ' '▲' | lolcat -F 0.2 -t -i
printf "%`tput cols`s"|tr ' ' '▽' | lolcat -F 0.2 -t -i
printf "%`tput cols`s"|tr ' ' '⧼' | lolcat -F 0.2 -t -i
printf "%`tput cols`s"|tr ' ' '⏚' | lolcat -F 0.2 -t -i
printf "%`tput cols`s"|tr ' ' '⌒' | lolcat -F 0.2 -t -i
printf "%`tput cols`s"|tr ' ' '⌇' | lolcat -F 0.2 -t -i
printf "%`tput cols`s"|tr ' ' '⧴' | lolcat -F 0.2 -t -i
printf "%`tput cols`s"|tr ' ' '⧳' | lolcat -F 0.2 -t -i
printf "%`tput cols`s"|tr ' ' '❯' | lolcat -F 0.2 -t -i
printf "%`tput cols`s"|tr ' ' '❮' | lolcat -F 0.2 -t -i
printf "%`tput cols`s"|tr ' ' '✚' | lolcat -F 0.2 -t -i
printf "%`tput cols`s"|tr ' ' '✦' | lolcat -F 0.2 -t -i
printf "%`tput cols`s"|tr ' ' '❥' | lolcat -F 0.2 -t -i
printf "%`tput cols`s"|tr ' ' '✂︎' | lolcat -F 0.2 -t -i
## Example 3 - Lolcat True Color Animated
printf "%`tput cols`s"|tr ' ' '⥤' | lolcat -a -d 40 -t -S 1 -F 0.2 -s 15.0 -i
printf "%`tput cols`s"|tr ' ' '⚘' | lolcat -a -d 40 -t -S 1 -F 0.2 -s 15.0 -i
printf "%`tput cols`s"|tr ' ' '▚' | lolcat -a -d 40 -t -S 1 -F 0.2 -s 15.0 -i
printf "%`tput cols`s"|tr ' ' '▰' | lolcat -a -d 40 -t -S 1 -F 0.2 -s 15.0 -i
printf "%`tput cols`s"|tr ' ' '┊' | lolcat -a -d 40 -t -S 1 -F 0.2 -s 15.0 -i
printf "%`tput cols`s"|tr ' ' '⁜' | lolcat -a -d 40 -t -S 1 -F 0.2 -s 15.0 -i
printf "%`tput cols`s"|tr ' ' '⋇' | lolcat -a -d 40 -t -S 1 -F 0.2 -s 15.0 -i
printf "%`tput cols`s"|tr ' ' '▼' | lolcat -a -d 50 -t -S 1 -F 0.2 -s 15.0 -i
printf "%`tput cols`s"|tr ' ' '▲' | lolcat -a -d 40 -t -S 1 -F 0.2 -s 15.0 -i
printf "%`tput cols`s"|tr ' ' '▽' | lolcat -a -d 40 -t -S 1 -F 0.2 -s 15.0 -i
printf "%`tput cols`s"|tr ' ' '⧼' | lolcat -a -d 40 -t -S 1 -F 0.2 -s 15.0 -i
printf "%`tput cols`s"|tr ' ' '⏚' | lolcat -a -d 40 -t -S 1 -F 0.2 -s 15.0 -i
printf "%`tput cols`s"|tr ' ' '⌒' | lolcat -a -d 40 -t -S 1 -F 0.2 -s 15.0 -i
printf "%`tput cols`s"|tr ' ' '⌇' | lolcat -a -d 40 -t -S 1 -F 0.2 -s 15.0 -i
printf "%`tput cols`s"|tr ' ' '⧴' | lolcat -a -d 40 -t -S 1 -F 0.2 -s 15.0 -i
printf "%`tput cols`s"|tr ' ' '⧳' | lolcat -a -d 40 -t -S 1 -F 0.2 -s 15.0 -i
printf "%`tput cols`s"|tr ' ' '❯' | lolcat -a -d 40 -t -S 1 -F 0.2 -s 15.0 -i
printf "%`tput cols`s"|tr ' ' '❮' | lolcat -a -d 40 -t -S 1 -F 0.2 -s 15.0 -i
printf "%`tput cols`s"|tr ' ' '✚' | lolcat -a -d 40 -t -S 1 -F 0.2 -s 15.0 -i
printf "%`tput cols`s"|tr ' ' '✦' | lolcat -a -d 40 -t -S 1 -F 0.2 -s 15.0 -i
printf "%`tput cols`s"|tr ' ' '❥' | lolcat -a -d 40 -t -S 1 -F 0.2 -s 15.0 -i
printf "%`tput cols`s"|tr ' ' '✂︎' | lolcat -a -d 40 -t -S 1 -F 0.2 -s 15.0 -i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment