cowsay but a horse
Go to file
Tim Van Baak 4fe914e1a3 Update README 2020-07-20 15:58:11 -07:00
README.md Update README 2020-07-20 15:58:11 -07:00
horsay.py Add .py extension 2020-07-20 15:54:47 -07:00

README.md

horsay

~$ horsay --help
usage: horsay [-h] [-u] [-w MAX_WIDTH] [-b BREAK_AT]

Displays input straight from the horse's mouth.

optional arguments:
  -h, --help            show this help message and exit
  -u, --unicode         Use fancier lines for the text bubble
  -w MAX_WIDTH, --max-width MAX_WIDTH
                        Maximum width of output (default: 80)
  -b BREAK_AT, --break-at BREAK_AT
                        String of characters to break words at (default: space
                        and -)

~$ horsay
Hello, world!
     ./|,,/|   
    <   o o)   +---------------+
   <\ (    | --| Hello, world! |
  <\\  |\  |   +---------------+
 <\\\  |(__)   
<\\\\  |       
~$ echo "Hello, pipe!" | horsay
     ./|,,/|   
    <   o o)   +--------------+
   <\ (    | --| Hello, pipe! |
  <\\  |\  |   +--------------+
 <\\\  |(__)   
<\\\\  |       
~$ echo "Hello, fancy box!" | horsay -u
     ./|,,/|   
    <   o o)   ╭───────────────────╮
   <\ (    | ──┤ Hello, fancy box! │
  <\\  |\  |   ╰───────────────────╯
 <\\\  |(__)   
<\\\\  |