Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boxes - a text filter which can draw any kind of box inc complex ASCII art. #976

Open
1 task
ShellLM opened this issue Jan 24, 2025 · 1 comment
Open
1 task
Labels
CLI-UX Command Line Interface user experience and best practices man-pages linux man pages

Comments

@ShellLM
Copy link
Collaborator

ShellLM commented Jan 24, 2025

Manpage of boxes(1)

Synopsis

boxes [options] [infile [outfile]]

Description

Boxes is a text filter which can draw any kind of box around its input text. Box design choices range from simple boxes to complex ASCII art. A box can also be removed and repaired, even if it has been badly damaged by editing of the text inside. Since boxes may be open on any side, boxes can also be used to create regional comments in any programming language. New box designs can be added and shared by appending to a configuration file.

Options

-a format, --align=format

Alignment/positioning of text inside box.

-c string, --create=string

Command line design definition for simple cases.

--color, --no-color

Control printing of ANSI color codes.

-d string, --design=string

Design selection.

-e eol, --eol=eol

Override line terminator.

-f string, --config=string

Use alternate config file.

-h, --help

Print usage information.

-i string, --indent=string

Indentation mode.

-k bool, --kill-blank, --no-kill-blank

Kill leading/trailing blank lines on removal.

-l, --list

List designs.

-m, --mend

Mend box.

-n encoding, --encoding=encoding

Character encoding.

-p string, --padding=string

Padding specification.

-q query, --tag-query=query

Query designs by tag.

-r, --remove

Remove an existing box.

-s widthxheight, --size=widthxheight

Box size specification.

-t tabopts, --tabs=tabopts

Tab handling.

-v, --version

Print out current version number.

Configuration File

Boxes will look for the configuration file in several locations, including:

  • Command-line specified file/directory
  • BOXES environment variable
  • $HOME
  • $XDG_CONFIG_HOME/boxes
  • $HOME/.config/boxes
  • /usr/share/boxes
  • /etc/xdg/boxes
  • /usr/local/share/boxes

Examples

echo "Good Bye World!" | boxes -d nuke
figlet "boxes . . . !" | lolcat -f | boxes -d unicornthink

Availability

Website: https://boxes.thomasjensen.com/

Version

Boxes version 2.3.1

License

Free software under the GNU General Public License, version 3.

Environment Variables

  • BOXES: Absolute path of the boxes configuration file
  • HOME: User's home directory
  • XDG_CONFIG_HOME: Root of configuration file location

See Also

  • figlet(6)
  • iconv(1)
  • lolcat(6)

Metadata

  • Page created: April 6, 1999
  • Last updated: October 3, 2024
  • © 1999-2024 Thomas Jensen and the boxes contributors

Suggested labels

None

@ShellLM ShellLM added CLI-UX Command Line Interface user experience and best practices man-pages linux man pages labels Jan 24, 2025
@ShellLM
Copy link
Collaborator Author

ShellLM commented Jan 24, 2025

Related content

#743 similarity score: 0.88
#924 similarity score: 0.87
#701 similarity score: 0.87
#6 similarity score: 0.86
#959 similarity score: 0.86
#102 similarity score: 0.86

@irthomasthomas irthomasthomas changed the title Manpage of boxes(1) - boxes boxes - a text filter which can draw any kind of box inc complex ASCII art. Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI-UX Command Line Interface user experience and best practices man-pages linux man pages
Projects
None yet
Development

No branches or pull requests

1 participant