old-www/LDP/LG/issue67/orr.html

219 lines
8.9 KiB
HTML

<!--startcut ==============================================-->
<!-- *** BEGIN HTML header *** -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML><HEAD>
<title>cowsay--ASCII Art for Your Screen LG #67</title>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#0000AF"
ALINK="#FF0000">
<!-- *** END HTML header *** -->
<CENTER>
<A HREF="http://www.linuxgazette.com/">
<IMG ALT="LINUX GAZETTE" SRC="../gx/lglogo.png"
WIDTH="600" HEIGHT="124" border="0"></A>
<BR>
<!-- *** BEGIN navbar *** -->
<IMG ALT="" SRC="../gx/navbar/left.jpg" WIDTH="14" HEIGHT="45" BORDER="0" ALIGN="bottom"><A HREF="okopnik.html"><IMG ALT="[ Prev ]" SRC="../gx/navbar/prev.jpg" WIDTH="16" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="index.html"><IMG ALT="[ Table of Contents ]" SRC="../gx/navbar/toc.jpg" WIDTH="220" HEIGHT="45" BORDER="0" ALIGN="bottom" ></A><A HREF="../index.html"><IMG ALT="[ Front Page ]" SRC="../gx/navbar/frontpage.jpg" WIDTH="137" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="http://www.linuxgazette.com/cgi-bin/talkback/all.py?site=LG&article=http://www.linuxgazette.com/issue67/orr.html"><IMG ALT="[ Talkback ]" SRC="../gx/navbar/talkback.jpg" WIDTH="121" HEIGHT="45" BORDER="0" ALIGN="bottom" ></A><A HREF="../faq/index.html"><IMG ALT="[ FAQ ]" SRC="./../gx/navbar/faq.jpg"WIDTH="62" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="lg_backpage67.html"><IMG ALT="[ Next ]" SRC="../gx/navbar/next.jpg" WIDTH="15" HEIGHT="45" BORDER="0" ALIGN="bottom" ></A><IMG ALT="" SRC="../gx/navbar/right.jpg" WIDTH="15" HEIGHT="45" ALIGN="bottom">
<!-- *** END navbar *** -->
<P>
</CENTER>
<!--endcut ============================================================-->
<H4 ALIGN="center">
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <HR> <P>
<!--===================================================================-->
<center>
<H1><font color="maroon">cowsay--ASCII Art for Your Screen</font></H1>
<H4>By <a href="mailto:iron@mso.oz.net">Mike Orr</a></H4>
</center>
<P> <HR> <P>
<!-- END header -->
<P> cowsay is a configurable talking cow, written in Perl. It draws an
ASCII cow with a speech balloon (or a think balloon) saying whatever
pithy comment you give it on the command line. The program requires
Perl 5.005_03 or newer.
<A HREF="http://www.debian.org/News/weekly/2001/12/">Debian Weekly News</A>
calls cowsay "an absolutely vital program for turning text into happy ASCII
cows". So there you go; you need it.
<P> According to the manpage, there are several command-line options to
change the apparance of the cow:
<BLOCKQUOTE><DL COMPACT>
<DT> <STRONG>-b</STRONG></DT><DD> Borg</DD>
<DT> <STRONG>-d</STRONG></DT><DD> dead</DD>
<DT> <STRONG>-g</STRONG></DT><DD> greedy</DD>
<DT> <STRONG>-p</STRONG></DT><DD> paranoid</DD>
<DT> <STRONG>-s</STRONG></DT><DD> stoned</DD>
<DT> <STRONG>-t</STRONG></DT><DD> tired</DD>
<DT> <STRONG>-w</STRONG></DT><DD> wired (opposite of tired)</DD>
<DT> <STRONG>-y</STRONG></DT><DD> youthful</DD>
</DL></BLOCKQUOTE>
You can also pass in characters for the eyes and tongue, use
any of 47 supplied cowfiles (not all of which are cows), or create your
own cowfile. A cowfile is a Perl script ending in .cow. The script
contains a variable $the_cow containing a picture of the cow. Remember
to backslash your "@"'s!
<P> For those who can't wait to see the cows, here are some screenshots:
<PRE>
Script started on Fri May 25 11:56:46 2001
$ <STRONG>cowsay "Hello, bovine world! "</STRONG>
_______________________
< Hello, bovine world! >
-----------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
$ <STRONG>cowsay -b "Hello, bovine world! "</STRONG>
_______________________
< Hello, bovine world! >
-----------------------
\ ^__^
\ (==)\_______
(__)\ )\/\
||----w |
|| ||
$ M="Hello, bovine world\!"
$ <STRONG>cowsay -d $M</STRONG>
______________________
< Hello, bovine world! >
----------------------
\ ^__^
\ (xx)\_______
(__)\ )\/\
U ||----w |
|| ||
$ <STRONG>cowsay -p $M</STRONG>
______________________
< Hello, bovine world! >
----------------------
\ ^__^
\ (@@)\_______
(__)\ )\/\
||----w |
|| ||
$ <STRONG>cowsay -s $M</STRONG>
______________________
< Hello, bovine world! >
----------------------
\ ^__^
\ (**)\_______
(__)\ )\/\
U ||----w |
|| ||
$ <STRONG>cowsay -y $M</STRONG>
______________________
< Hello, bovine world! >
----------------------
\ ^__^
\ (..)\_______
(__)\ )\/\
||----w |
|| ||
$ <STRONG>cowsay -f tux $M</STRONG>
_______________________
< Hello, bovine world! >
-----------------------
\
\
.--.
|o_o |
|:_/ |
// \ \
(| | )
/'\_ _/`\
\___)=(___/
$ <STRONG>cowsay -f dragon $M</STRONG>
_______________________
< Hello, bovine world! >
-----------------------
\ / \ //\
\ |\___/| / \// \\
/0 0 \__ / // | \ \
/ / \/_/ // | \ \
@_^_@'/ \/_ // | \ \
//_^_/ \/_ // | \ \
( //) | \/// | \ \
( / /) _|_ / ) // | \ _\
( // /) '/,_ _ _/ ( ; -. | _ _\.-~ .-~~~^-.
(( / / )) ,-{ _ `-.|.-~-. .~ `.
(( // / )) '/\ / ~-. _ .-~ .-~^-. \
(( /// )) `. { } / \ \
(( / )) .----~-.\ \-' .~ \ `. \^-.
///.----..&gt; \ _ -~ `. ^-` ^-_
///-._ _ _ _ _ _ _}^ - - - - ~ ~-- ,.-~
/.-~
$
Script done on Fri May 25 11:59:03 2001
</PRE>
<P> I like that dragon, BTW.
<P> Find cowsay at
<A HREF="http://www.nog.net/~tony/warez/cowsay.shtml">http://www.nog.net/~tony/warez/cowsay.shtml</A>
or in the unstable branch of your nearest
<A HREF="http://www.debian.org">Debian</A> mirror, in section "games".
(PS. The author's site has a link to the
<A HREF="http://www.cowswithguns.com/">Cows with Guns</A> site, which has
a shadow image of, er, two cows with guns saying, "Four legs good. Two
legs bad," from Orwell's <I>Animal Farm</I>. I wonder if Eric Raymond
would approve?
<IMG ALT=":)" SRC="../gx/dennis/smily.gif" WIDTH="20" HEIGHT="24">
<!-- *** BEGIN bio *** -->
<SPACER TYPE="vertical" SIZE="30">
<P>
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Mike Orr</H4>
<CITE>Mike ("Iron") is the Editor of </CITE>Linux Gazette<CITE>. You can read
what he has to say in the Back Page column in this issue. He has been a Linux
enthusiast since 1991 and a Debian user since 1995. He is SSC's web technical
coordinator, which means he gets to write a lot of Python scripts.
Non-computer interests include Ska/Oi! music and the international language
Esperanto. The nickname Iron was given to him in college--short for Iron Orr,
hahaha.</CITE>
<!-- *** END bio *** -->
<!-- *** BEGIN copyright *** -->
<P> <hr> <!-- P -->
<H5 ALIGN=center>
Copyright &copy; 2001, Mike Orr.<BR>
Copying license <A HREF="../copying.html">http://www.linuxgazette.com/copying.html</A><BR>
Published in Issue 67 of <i>Linux Gazette</i>, June 2001</H5>
<!-- *** END copyright *** -->
<!--startcut ==========================================================-->
<HR><P>
<CENTER>
<!-- *** BEGIN navbar *** -->
<IMG ALT="" SRC="../gx/navbar/left.jpg" WIDTH="14" HEIGHT="45" BORDER="0" ALIGN="bottom"><A HREF="okopnik.html"><IMG ALT="[ Prev ]" SRC="../gx/navbar/prev.jpg" WIDTH="16" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="index.html"><IMG ALT="[ Table of Contents ]" SRC="../gx/navbar/toc.jpg" WIDTH="220" HEIGHT="45" BORDER="0" ALIGN="bottom" ></A><A HREF="../index.html"><IMG ALT="[ Front Page ]" SRC="../gx/navbar/frontpage.jpg" WIDTH="137" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="http://www.linuxgazette.com/cgi-bin/talkback/all.py?site=LG&article=http://www.linuxgazette.com/issue67/orr.html"><IMG ALT="[ Talkback ]" SRC="../gx/navbar/talkback.jpg" WIDTH="121" HEIGHT="45" BORDER="0" ALIGN="bottom" ></A><A HREF="../faq/index.html"><IMG ALT="[ FAQ ]" SRC="./../gx/navbar/faq.jpg"WIDTH="62" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="lg_backpage67.html"><IMG ALT="[ Next ]" SRC="../gx/navbar/next.jpg" WIDTH="15" HEIGHT="45" BORDER="0" ALIGN="bottom" ></A><IMG ALT="" SRC="../gx/navbar/right.jpg" WIDTH="15" HEIGHT="45" ALIGN="bottom">
<!-- *** END navbar *** -->
</CENTER>
</BODY></HTML>
<!--endcut ============================================================-->