display a large ascii letters on terminal with figlet
March 27th, 2007 mysurface Posted in Misc, figlet, figlist | Hits: 7797 |
figlet is a handy tool used to beautify your display in virtual terminal, it display large letter which make up by ascii codes.
figlet hi mysurface
_ _ __
| |__ (_) _ __ ___ _ _ ___ _ _ _ __ / _| __ _ ___ ___
| '_ \| | | '_ ` _ \| | | / __| | | | '__| |_ / _` |/ __/ _ \
| | | | | | | | | | | |_| \__ \ |_| | | | _| (_| | (_| __/
|_| |_|_| |_| |_| |_|\__, |___/\__,_|_| |_| \__,_|\___\___|
|___/
It probably looks awkward here, but it will display nicely with font monospace, which I have it set with gnome-terminal.
You can download more fonts for figlet, It usually store all the figlet fonts at /usr/share/figlet. Download more fonts at FIGlet Fonts Library
To list all the fonts available for figlet, use figlist, it list both font files and control files.
figlist
Control file is a file containing a list of commands that figlet executes each time it reads a character. These commands can map certain input characters to other characters. It probably changing certain ascii codes make the letters looks better or the way the control file specified.
To use the font, specified -f
figlet -f digital hi mysurface
To use the control file, specified -C. With upper, it turns all letters to uppercase
figlet -C upper hi mysurface
By default, the width of figlet is been set to 80, therefore some phase longer than 80 actual characters will be wrap to next line. If you have wider terminal, you can specified with width with -w.
figlet -w 120 -C upper -f lean hi mysurface
It does have simple alignment options ( -l for left, -c for center and -r for right)
figlet -c -w 120 -C upper -f lean hi mysurface
Thanks to Debian package of the Day.
Live Chat!









April 18th, 2007 at 4:03 pm
this is cool http://photo2text.com