LinuxCommandLibrary

boxes

Draw ASCII art boxes around text.

TLDR

Create box around text

$ echo ["Hello World"] | boxes
copy
Specific design
$ echo ["Text"] | boxes -d [stone]
copy
List available designs
$ boxes -l
copy
Remove box
$ cat [boxed.txt] | boxes -r
copy

SYNOPSIS

boxes [options] [file]

DESCRIPTION

boxes is a text filter that draws ASCII art boxes around text. It supports numerous box designs and can both add and remove boxes, making it useful for creating eye-catching comments, headers, or decorative text in source code and documentation.
The tool provides over 50 predefined box styles with customization options.

PARAMETERS

-d design

Box design to use
-l
List available designs
-r
Remove box instead of adding
-a format
Alignment (left, center, right)
-s wxh
Box size (width x height)
-p padding
Padding format
-f file
Config file

POPULAR DESIGNS

- stone - Stone wall style
- dog - ASCII dog
- cat - ASCII cat
- parchment - Scroll/parchment
- spring - Spring/coil
- santa - Santa Claus
- c-cmt - C comment block
- java-cmt - Java comment block

WORKFLOW

$ # Simple box
echo "Hello" | boxes

# Specific design
echo "Warning" | boxes -d stone

# List all designs
boxes -l

# Remove box
cat file.txt | boxes -r

# Custom alignment
echo "Centered" | boxes -a c
copy

CAVEATS

Wide text may not fit terminal. Some designs require monospace font. Configuration file syntax complex for custom designs. Removing boxes not perfect for modified boxes.

HISTORY

boxes was created by Thomas Jensen in 1999 to provide decorative ASCII boxes for text, inspired by similar DOS utilities.

SEE ALSO

figlet(6), cowsay(1), banner(6)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community