Making a Unicode Progress Bar

I originally wanted to display the CPU usage of my MacBook in the menubar using xbar . In general, making text-based progress bars in terminals or using fixed-width fonts is easy. Just use the number of characters to create a linear ratio. Here are examples of fixed-width character progress bars: [ =··················· ] 5%