Alignment/positioning of text inside box. This option takes a format string
argument which is read from left to right. The format string may not
contain whitespace and must consist of one or more of the following
hx - horizontal alignment of the input text block inside a potentially larger
box. Possible values for
l (ell, for left alignment),
c (center), or
r (right). This does not affect the justification of text lines within the
input text block (use the
j argument instead).
Short hand notations (can be combined with the above arguments):
The factory default setting for -a is hlvt.
Command line design definition for simple cases. The argument of this
option is the definition for the "west" (W) shape. The defined shape must
consist of exactly one line, i.e. no multi-line shapes are allowed. The
-c option is intended as a shortcut for those cases where simple regional
comments are to be created, which only need a certain character or sequence
of characters to be placed in front of every line. In such cases, it is
much more convenient to simply specify
-c than to do a complete design definition in ones config file, where the
only shape defined is the west shape.
This option implies a -d and does not access the config file. -c may of course be used in conjunction with any of the other options. By default, -c is not specified.
|Design selection. The one argument of this option is the name of the design to use.|
|Use alternate config file. The one argument of this option is the name of a valid boxes config file, containing new and exciting designs!|
|-h||Print usage information.|
|Indentation mode. Possible arguments are "text" (indent text inside of box), "box" (indent box, not text inside of box), or "none" (throw away indentation). Arguments may be abbreviated. The default is to indent the box, but not the text.|
|-k bool||Kill leading/trailing blank lines on removal. The value of bool can be specified as on, yes, true, 1, or t, all meaning yes, or off, no, false, 0, or f, which mean no. This is case-insensitive. This option only takes effect in connection with -r. If set to yes, leading and trailing blank lines will be removed from the output. If set to no, the entire content of the former box is returned. The default is no, if both the top and the bottom part of the box are open, as is the case with most regional comments. If the boxs design defines a top part or a bottom part, the default is yes.|
|-l||(ell) List designs. Produces a listing of all available box designs in the config file, along with a sample box and information about its creator. Also checks syntax of the entire config file. If used in connection with -d, displays detailed information about the specified design.|
|-m||Mend box. This removes a (potentially broken) box as with -r, and redraws it afterwards. The mended box is drawn according to the options given. This may be important to know when it comes to restoring padding, identation, etc. for the mended box. Implies -k false.|
Padding. Specify padding in spaces around the input text block for all
sides of the box. The argument string may not contain whitespace and must
consist of a combination of the following characters, each followed by a
number indicating the padding in spaces:
a - (all) give padding for all sides at once
h - (horiz) give padding for both horizontal sides
v - (vertical) give padding for both vertical sides
b - (bottom) give padding for bottom (south) side
l - (left) give padding for left (west) side
t - (top) give padding for top (north) side
r - (right) give padding for right (east) side
Example: -p a4t2 would define the padding to be 4 characters on all sides, except for the top of the box, where the input text block will be only 2 lines away from the box.
By default, unless specified otherwise in the config file, no padding is used.
|-r||Remove box. Removes an existing box instead of drawing it. Which design to use is detected automatically. In order to save time or in case the detection does not decide correctly, combine with -d to specify the design. The default is to draw a new box.|
Box size. This option specifies the desired box size in units of columns
(for width) and lines (for height).
If only a single number is given as argument, this number specifies the
desired box width. A single number prefixed by x specifies only the box
height. The actual resulting box size may vary depending on the individual
shape sizes of the chosen design. Also, other command line options may
influence the box size (such as
By default, the smallest possible box is created around the text.
Tab handling. This option controls how tab characters in the input text are
handled. The option string must always begin with a
uint number indicating the distance between tab stops. It is important that this
value be set correctly, or tabulator characters will upset your input text.
The correct tab distance value depends on the settings used for the text
you are processing. A common value is 8.
Immediately following the tab distance, an optional character can be appended, telling boxes how to treat the leading tabs. The following options are available:
e - expand tabs into spaces
k - keep tabs as close to what they were as possible
u - unexpand tabs. This makes boxes turn as many spaces as possible into tabs.
In order to maintain backwards compatibility, the
string can be just a number. In that case,
e is assumed for tab handling, which removes all tabs and replaces them with
spaces. The factory default for the
-t option is simply 8, which is just such a case.
|-v||Print out current version number.|
Boxes will use the configuration file specified on the command line (using -f). If no config file is specified on the command line, boxes will check for the BOXES environment variable, which may contain a filename to use. If BOXES is not set, boxes will try to read $HOME/.boxes and use it as a config file. Failing that, boxes will try to read the system-wide config file (see FILES).
The syntax of boxes config files is described on the website (see below). They are quite self-explanatory, though.
Boxes is available from its website at <URL:http://boxes.thomasjensen.com/>. The website also features a number of examples illustrating this manual page as well as more in-depth documentation.
Check out vim(1) at <URL:http://www.vim.org/>!
Boxes was made by Thomas Jensen <firstname.lastname@example.org>.
Please see the boxes website for a current email address.
This is boxes version 1.1.2.
Although it is doing fine in most cases, imho the design autodetector needs some more work.
Should you notice any other unspecified behavior, please tell the author!
Boxes recognizes the following environment variables:
HOME The users home directory. BOXES Name of boxes configuration file, if different from ~/.boxes.
$HOME/.boxes boxes configuration file /usr/local/share/boxes/boxes-config system-wide configuration file
tal(1) , vim(1)
|-->||BOXES (1)||January 16 2015|