Figlet
From blag.wiki.aktivix.org
Contents |
INTRO
FIGlet is a program for making large letters out of ordinary text. It's kinda old-school ascii art. get the source from here
BACKGROUND PREP
The man page recommends installing to /usr/games but I'm installing to /usr/local/src. Read man hier for a description of the file system hierarchy.
INSTALLATION
as root
mv figlet222-foo.tar.gz /usr/local/src cd /usr/local/src tar -zxvvvf figlet222-foo.tar.gz chown -vR jayeola.jayeola figlet222
replace jayeola with your regular user
chmod 664 Makefile
You won't be able to edit Makefile unless you do this. Use your editor of choice to specify the path to the fonts that figlet will use. For me all I had to to was to change the file to make it look like this:-
DEFAULTFONTDIR = /usr/local/share/figlet
# Use this definition if you can't put things in /usr/local/share/figlet #DEFAULTFONTDIR = fonts
That was all I needed to get figlet going
make && make install
USE
Get a brief summary of figlet's use with
figlet -h
the output looks like
Usage: figlet [ -cklnoprstvxDELNRSWX ] [ -d fontdirectory ]
[ -f fontfile ] [ -m smushmode ] [ -w outputwidth ]
[ -C controlfile ] [ -I infocode ] [ message ]
what version of blag am i using?
cat /etc/blag-release | figlet
____ _ _ ____ _
| __ )| | / \ / ___| _ __ ___| | ___ __ _ ___ ___
| _ \| | / _ \| | _ | '__/ _ \ |/ _ \/ _` / __|/ _ \
| |_) | |___ / ___ \ |_| | | | | __/ | __/ (_| \__ \ __/
|____/|_____/_/ \_\____| |_| \___|_|\___|\__,_|___/\___|
_____ ___ ___ ___ ___ ___ _ __
|___ / / _ \ / _ \ / _ \ / _ \ / (_) ___ ___| |__ ___ _ __ __ \ \
|_ \| | | | | | | | | | | | | | || |/ __/ _ \ '_ \ / _ \ '__/ _` | |
___) | |_| | |_| | |_| | |_| | | || | (_| __/ |_) | __/ | | (_| | |
|____/ \___/ \___/ \___/ \___/ | ||_|\___\___|_.__/ \___|_| \__, | |
\_\ |___/_/
what's my kernel version?
uname -r | figlet
____ __ _ _ _ ____ |___ \ / /_ / / | / |___ \ __) || '_ \ | | | | | __) | / __/ | (_) || | |_| |/ __/ |_____(_)___(_)_|_(_)_|_____|
there are quite a few fonts available
whoami| figlet -f /usr/local/src/figlet222/fonts/slant.flf
_ __
(_)___ ___ _____ ____ / /___ _
/ / __ `/ / / / _ \/ __ \/ / __ `/
/ / /_/ / /_/ / __/ /_/ / / /_/ /
__/ /\__,_/\__, /\___/\____/_/\__,_/
/___/ /____/
ABOUT THE SOURCE CODE
sloccount /usr/local/src/figlet222/
Creating filelist for figlet222 Categorizing files. Finding a working MD5 command.... Found a working MD5 command. Computing results.
SLOC Directory SLOC-by-Language (Sorted) 3396 figlet222 ansic=3309,sh=87 Totals grouped by language (dominant language first): ansic: 3309 (97.44%) sh: 87 (2.56%) Total Physical Source Lines of Code (SLOC) = 3,396 Development Effort Estimate, Person-Years (Person-Months) = 0.72 (8.66) (Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05)) Schedule Estimate, Years (Months) = 0.47 (5.68) (Basic COCOMO model, Months = 2.5 * (person-months**0.38)) Estimated Average Number of Developers (Effort/Schedule) = 1.53 Total Estimated Cost to Develop = $ 97,534 (average salary = $56,286/year, overhead = 2.40). SLOCCount, Copyright (C) 2001-2004 David A. Wheeler SLOCCount is Open Source Software/Free Software, licensed under the GNU GPL. SLOCCount comes with ABSOLUTELY NO WARRANTY, and you are welcome to redistribute it under certain conditions as specified by the GNU GPL license; see the documentation for details. Please credit this data as "generated using David A. Wheeler's 'SLOCCount'."