OSX users can have fun too. Make sure you have HomeBrew 9 installed via: brew -v. Install cowsay 0 via: brew install cowsay. Install fortune 1 via: brew install fortune. Install fortune 1 via: brew install figlet. Make sure you have Ruby installed via: ruby -v. Install the lolcat 2 via: gem gem install lolcat. Jan 08, 2013 We are going to use two programs, FIGlet and TOIlet. FIGlet has been around longer and is considered the classic program for automating the process of turning ordinary text into ASCII art. TOIlet is a fork of FIGlet that runs on the libcaca library and enables advanced features such as color.
![]() ![]() ![]()
I've always preferred figlet for big writing. Something about it preserves the character shape better.
A bit subjective but there you go. Simple enough: $ sudo apt-get install figlet$ figlet oh hai! / ' ' / ` ( / , (It looks better in a terminal than it does here)There are a ton of formatting options too that make it suitable for lots of different situations. It does this through 'fonts' ( standard, slant, shadow, small, smslant, bubble, digital, mini, etc). Man figlet has a full listing of available styles and formatting options but here are a few examples: $ figlet -f slant Hooah! / / / / / / / // // / / / `/ / // / // / // / // / / / //// ////,// /$ figlet -f smslant Hooah! / // / / / / // / / / `/ ////////,///$ figlet -f bubble Hooah!
/ / / / / / ( H o o a h ! )/ / / / / /$ figlet -f mini Hooah!. ( o. Another (longer) option that might be helpful if there's any nodejs involvement is. It's a node library but it can be scripted out.
$ sudo apt-get install npm$ sudo npm -g install ascii-banner$ node -e 'var AsciiBanner = require('ascii-banner');AsciiBanner.write('Oh hai').out;' / / / ^ / / `-' / / // It also has font options: $ node -e 'require('ascii-banner').write('Oh hai').font('Thin').out;',-. o -.,-. ,- `-'` ' ` '`-^`.
![]() Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |