A joke command.
It's a cowsay
clone, written to practice Perl bad practices.
I plan to upload it to Linix and Windows repositories (see #1)... when I learn how. Until then, it's a manual install.
>perl flamingo.pl Hello, World!
_______________
/ \
| Hello, World! |
\____________, /
\/
___
/^ \
//--| |
; /,/
,/ / _/"""\
| "\_/ /, '\
\, \_, \ \
`\____,--,\/ \;
||\\ \;
|| \\
|| /,>
||//
|//
//
//|
You can even pipe the flamingo into the flamingo, to make the flamingo say a flamingo saying a given phrase!
>perl flamingo.pl Hello, World! | perl flamingo.pl
_________________________________________
/ \
| _______________ |
| / \ |
| | Hello, World! | |
| \____________, / |
| \/ |
| ___ |
| /" \ |
| //--| | |
| ; /,/ |
| ,/ / _/"""\ |
| | "\_/ /, '\ |
| \, \_, \ \ |
| `\____,--,\/ \; |
| ||\\ \; |
| || \\ |
| || /,> |
| ||// |
| |// |
| // |
| //| |
\____________, ,_________________________/
\/
___
/o \
//--| |
; /,/
,/ / _/"""\
| "\_/ /, '\
\, \_, \ \
`\____,--,\/ \;
||\\ \;
|| \\
|| /,>
||//
|//
//
//|
You can do this endlessly. Endlessly. END--LESS--LY!
- With each run, the eye used is random (from this array). This cannot be changed (see #3), sorry!
- The flamingo doesn't have feet. You can make it have feet by passing
-legs
- You can make the flamingo wear a fancy top hat with the flag
-hat
- I spent hours writing a big flamingo instead of doing school work, before realising it was too big and ugly for the terminal. You can use it, and support my wasted time, by passing
-big
- Piping into
flamingo.pl
works, due to the code here, although I do not remember why it works - Piping multi-line text works!
- Piping long text works, as long as your terminal is wide enough to show it, or it doesn't have word-wrap!
- When the given text is too long for the speach bubble, it will extend the speach bubble to the right without moving the flamingo
- Piping text from things like
echo
does work, though slightly broken (see #2)