horsay/README.md

40 lines
1.1 KiB
Markdown
Raw Normal View History

2019-04-01 19:20:27 +00:00
# horsay
2019-04-01 19:26:09 +00:00
```
2020-07-20 22:58:11 +00:00
~$ 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
2019-04-01 19:26:09 +00:00
Hello, world!
./|,,/|
2020-07-20 22:58:11 +00:00
< o o) +---------------+
<\ ( | --| Hello, world! |
<\\ |\ | +---------------+
2019-04-01 19:26:09 +00:00
<\\\ |(__)
<\\\\ |
2020-07-20 22:58:11 +00:00
~$ echo "Hello, pipe!" | horsay
2019-04-01 19:26:09 +00:00
./|,,/|
2020-07-20 22:58:11 +00:00
< o o) +--------------+
<\ ( | --| Hello, pipe! |
<\\ |\ | +--------------+
<\\\ |(__)
<\\\\ |
~$ echo "Hello, fancy box!" | horsay -u
./|,,/|
< o o)
<\ ( | ──┤ Hello, fancy box! │
<\\ |\ | ╰───────────────────╯
2019-04-01 19:26:09 +00:00
<\\\ |(__)
<\\\\ |
```