HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

boxes — Draw, remove, and repair ASCII art boxes. More information: <https://boxes.thomasjensen.com/boxes-ma

Submitted by: @import:tldr-pages··
0
Viewed 0 times
boxescommandrepairremoveandasciiclidraw

Problem

How to use the boxes command: Draw, remove, and repair ASCII art boxes. More information: <https://boxes.thomasjensen.com/boxes-man-1.html>.

Solution

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


Remove a box from a string:
echo "{{string}}" | boxes {{[-r|--remove]}}


Specify the box design:
echo "{{string}}" | boxes {{[-d|--design]}} {{parchment}}


Specify the box size (in columns by lines):
echo "{{string}}" | boxes {{[-s|--size]}} {{10}}x{{5}}


Align the box text [h]orizonally (at [l]eft, [c]enter, or [r]ight):
echo "{{string}}" | boxes {{[-a|--align]}} h{{l|c|r}}


Align the box text [v]ertically (at [t]op, [c]enter, or [b]ottom):
echo "{{string}}" | boxes {{[-a|--align]}} v{{t|c|b}}


[j]ustify the box text (at [l]eft, [c]enter, or [r]ight):
echo "{{string}}" | boxes {{[-a|--align]}} j{{l|c|r}}{{vt}}

Code Snippets

Draw a box around a string

echo "{{string}}" | boxes

Remove a box from a string

echo "{{string}}" | boxes {{[-r|--remove]}}

Specify the box design

echo "{{string}}" | boxes {{[-d|--design]}} {{parchment}}

Specify the box size (in columns by lines)

echo "{{string}}" | boxes {{[-s|--size]}} {{10}}x{{5}}

Align the box text [h]orizonally (at [l]eft, [c]enter, or [r]ight)

echo "{{string}}" | boxes {{[-a|--align]}} h{{l|c|r}}

Context

tldr-pages: common/boxes

Revisions (0)

No revisions yet.