


Using -s 40 sets the box width to 40 characters. p a1l2 stands for "all 1, left 2", and tells boxes to put one space (or empty line, in the vertical direction) around the input text block, except for the left side where two spaces shall be used. -p sets text padding: -p h0v0 sets padding to "horizontal zero, vertical zero".Since no one really wants to all type that just to center text inside a box, there are shorthand notations: The factory default setting is -a hlvtjl which stands for "horizontally centered, vertically top, justification left". -a can be used to position the input text inside a box.-d selects a design from your config file.To quit), but here is a quickstart list of switches: The boxes home page, along with several examples:Īs usual, man boxes has all the details (type q The syntax of the config file is explained on Run boxes -l | less to list all designs with their description.Īny user may define box designs by copying the system-wide config file to $HOME/.boxes, and editing it. It was designed to be used with text editors that support filters to create comments in programming code, but we can use it on the command line by piping (|) text output through it. Box design choices range from simple boxes to complex ASCII art. IMPORTANT: If there is a space after the \ the command WILL NOT work.įiglet and Boxes Boxes is a text filter which can draw any kind of box around its input text. With PS2, which means it is waiting for the rest of your command. The \ means in this case "to be continued" or "more to come".Ī command ending with \ in your terminal will reply One thing to note: in bash, when command lines are quite long we can use \ (backslash) to break them up into two lines. TOIlet which is like a supercharged figlet.Īnd play around with these examples to get started. The GCC and Make page on the menu has instructions youĬan use to compile two more ASCII art applications, the Steam Locomotive We have a few examples we can play with to sharpen our understanding of shell command substitution and redirection: caeser and fortune from the BSD games, figlet and boxes from the ASCII art community. By the early 1990s people came up with the idea of creating ASCII Art text, using combinations of normal characters and whitespace to make pictures. Back in the 1980s the "Berkeley Standard Distribution" (BSD) Unix included a package of games - there were not really any GUIs at the time, so they were all terminal (text) based.
