1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 21:22:09 +02:00
tldr/pages/common/boxes.md
Vitor Henrique 1ba7fb9460
pages*: add missing mnemonics (#12151)
* pages*: add missing mnemonics

---------

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-02-19 19:43:42 +05:30

32 lines
756 B
Markdown

# boxes
> Draw, remove, and repair ASCII art boxes.
> More information: <https://boxes.thomasjensen.com/boxes-man-1.html>.
- Draw a box around a string:
`echo "{{string}}" | boxes`
- [r]emove a box from a string:
`echo "{{string}}" | boxes -r`
- Specify the box [d]esign:
`echo "{{string}}" | boxes -d {{parchment}}`
- Specify the box [s]ize (in columns by lines):
`echo "{{string}}" | boxes -s {{10}}x{{5}}`
- [a]lign the box text [h]orizonally (at [l]eft, [c]enter or [r]ight):
`echo "{{string}}" | boxes -a h{{l|c|r}}`
- [a]lign the box text [v]ertically (at [t]op, [c]enter or [b]ottom):
`echo "{{string}}" | boxes -a v{{t|c|b}}`
- [j]ustify the box text (at [l]eft, [c]enter or [r]ight):
`echo "{{string}}" | boxes -a j{{l|c|r}}{{vt}}`