mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-19 07:50:08 +00:00
Update cheatsheets
This commit is contained in:
37
boxes
Normal file
37
boxes
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user