2023-05-17 05:15:01 +12:00
|
|
|
# boxes
|
|
|
|
|
|
|
|
> Draw, remove, and repair ASCII art boxes.
|
2024-01-19 22:15:01 -03:00
|
|
|
> More information: <https://boxes.thomasjensen.com/boxes-man-1.html>.
|
2023-05-17 05:15:01 +12:00
|
|
|
|
|
|
|
- Draw a box around a string:
|
|
|
|
|
|
|
|
`echo "{{string}}" | boxes`
|
|
|
|
|
2024-02-19 11:13:42 -03:00
|
|
|
- [r]emove a box from a string:
|
2023-05-17 05:15:01 +12:00
|
|
|
|
|
|
|
`echo "{{string}}" | boxes -r`
|
|
|
|
|
2024-02-19 11:13:42 -03:00
|
|
|
- Specify the box [d]esign:
|
2023-05-17 05:15:01 +12:00
|
|
|
|
|
|
|
`echo "{{string}}" | boxes -d {{parchment}}`
|
|
|
|
|
2024-02-19 11:13:42 -03:00
|
|
|
- Specify the box [s]ize (in columns by lines):
|
2023-05-17 05:15:01 +12:00
|
|
|
|
|
|
|
`echo "{{string}}" | boxes -s {{10}}x{{5}}`
|
|
|
|
|
2024-02-19 11:13:42 -03:00
|
|
|
- [a]lign the box text [h]orizonally (at [l]eft, [c]enter or [r]ight):
|
2023-05-17 05:15:01 +12:00
|
|
|
|
2024-02-19 11:13:42 -03:00
|
|
|
`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}}`
|