know how to use old banner command to print a large, high quality banner on the screen or printer. Recently, I saw colorful banner on friends laptop. How do I display large colourful characters on screen, especially on terminal? How do I create colorful text banners on screen?
You can use following two programs to create colourful text banner:
You can use following two programs to create colourful text banner:
a] figlet - Display large characters made up of ordinary screen characters.
b] toilet - Prints text using large characters made of smaller characters. It is similar in many ways to FIGlet with additional features such as Unicode handling, colour fonts, filters and various export formats.
Install figlet and toilet
Use yum or apt-get to install the tools:
$ sudo apt-get update
$ sudo apt-get install toilet figlet
How do I use figlet?
Simply use it as follows:
Sample output:
$ figlet nixCraft
Sample output:
_ ____ __ __ __ (_)_ __/ ___|_ __ __ _ / _| |_| '_ \| \ \/ / | | '__/ _` | |_| __|| | | | |> <| |___| | | (_| | _| |_|_| |_|_/_/\_\\____|_| \__,_|_| \__|
figlet fonts
The -f option can be used to specify font:
Sample output:
$ figlet -f big "nixCraft"
Sample output:
_ _____ __ _(_) / ____| / _| |_ __ ___ _| | _ __ __ _| |_| |_| '_ \| \ \/ / | | '__/ _` | _| __|| | | | |> <| |____| | | (_| | | | |_|_| |_|_/_/\_\\_____|_| \__,_|_| \__|
$ figlet -f slant "nixCraft"
The -ct options centers the text and makes it take up the full width of the terminal:
$ figlet -ctf slant "nixCraft"
If you don’t want FIGlet to smush FIGcharacters into each other, use the -k (kerning) option:
$ figlet -k "cyberciti"
If figlet gets its input from a file, it is often a good idea to use -p:
$ figlet -p < /path/to/file
To lists figlet fonts and control files, enter:
$ figlist
Sample output
Default font: standardFont directory: /usr/share/figletFiglet fonts in this directory:ivritbannerbigk bubblo cbleal leandigi tll smini mnemonic script shadow slant sm amscript smshadow smslant standard term......
How do I use toilet command?
Use command as follows:
Sample output:
$ toilet -f bigmono9 -F gay nixCraft
$ toilet -f mono12 -F metal nixCraft
Sample output:
Where,
- -F filter-name: Set filter
- -f fontname : Set font name
To list installed filter, type:
Sample output:
$ toilet -F list
Sample output:
Available filters:"crop": crop unused blanks"gay": add a rainbow colour effect"metal": add a metallic colour effect"flip": flip horizontallyotate": perform a 180 d"flop": flip vertically"regrees rotation
Running figlet / toilet automatically
Add command to your ~/.bashrc command so that banner get displayed every time you open terminal or console:
echo 'echo "Welcome to"' >> ~/.bashrcecho 'toilet -f mono12 -F metal nixCraft' >> ~/.bashrc
((http://www.cyberciti.biz/faq/create-large-colorful-text-banner-on-screen/))