linea vertical ascii

Vertical Line in ASCII

By Daniel Jackson
AD

Ever found yourself trying to create or visualize vertical lines in the command line using ASCII characters? You're not alone. The humble ASCII character set contains a treasure trove of symbols that can be used to create lines, boxes, and even complex designs. One of the most common methods is using the '|' character to create vertical lines, which can serve as dividers, columns, or simply to add visual structure to your console output.

However, using a single '|' character can sometimes result in a line that's a bit too thin. Enter the double '|' or the box drawing characters, which can create thicker, more robust vertical lines. But where do these characters come from, and how can you use them effectively?

ASCII Box Drawing Characters

The ASCII box drawing character set was introduced in the extended ASCII character set to provide decorative control characters for marking up text and making it more visually appealing. These characters are not usually displayed by default in modern text-based interfaces, but they can be enabled in environments like the terminal, VRML, or HTML.

AD
a black and white poster with lines on it
a black and white poster with lines on it
a black and white photo of a man's face made out of words on paper
a black and white photo of a man's face made out of words on paper
MIST-30/JONINSCII-SIT_STAND
MIST-30/JONINSCII-SIT_STAND

Among these characters are a set of vertical lines, also known as 'linea vertical ascii', which can be used to create thicker, more prominent lines compared to the simple '|' character.

Double Vertical Line ('||')

The most straightforward way to create a thicker vertical line is to use two '|' characters placed side by side. This simple trick can significantly enhance the visual impact of your vertical lines. For example, instead of using a single '|' for a column separator:

some type of alphabet with numbers and letters
some type of alphabet with numbers and letters
Ascii experiments
Ascii experiments
a black and white image of a man's face with words all over it
a black and white image of a man's face with words all over it

Name | Age | Country --- | --- | --- John | 30 | USA

You could use doubles:

AD

Name || Age || Country --- || --- || --- John || 30 || USA

ASCII Art tutorial | UI/UX & Graphic design
ASCII Art tutorial | UI/UX & Graphic design
an image of some lines that are in the same color and size as each other
an image of some lines that are in the same color and size as each other
Just an ASCII
Just an ASCII
an image of a computer screen with many lines and dots on the bottom half of it
an image of a computer screen with many lines and dots on the bottom half of it
Japanese Text Patterns, Japanese Text With Dots, Abstract Text In Japanese, Japanese Text On Graph Paper, Decorative Ascii Text, Ascii Texture, Japanese Text Diagram, Book With Japanese Text Overlay, Deconstructivism
Japanese Text Patterns, Japanese Text With Dots, Abstract Text In Japanese, Japanese Text On Graph Paper, Decorative Ascii Text, Ascii Texture, Japanese Text Diagram, Book With Japanese Text Overlay, Deconstructivism
the font and numbers are arranged in rows
the font and numbers are arranged in rows

Box Drawing Characters

For more complex or decorative vertical lines, the box drawing characters come in handy. These include '┃' (U+2503), also known as the 'box horizontal heavy line', and '║' (U+2507), the 'box vertical light line'. You can use these characters to create lines of varying thickness and style:

┃ Name ┃ Age ┃ Country ┃ ---┃---┃---┃---┃ John┃ 30 ┃ USA ┃

AD

Note that these characters might not display correctly in all environments. In a terminal, you can usually enable them using the `Infocmp` command, or by setting the appropriate escape sequences in your terminal settings.

AA47-Snail
AA47-Snail
ASCII Art tattoo | ascii star
ASCII Art tattoo | ascii star
an image of a butterfly made out of numbers
an image of a butterfly made out of numbers
an abstract black and white background with random lines in the shape of letters that appear to be floating or falling
an abstract black and white background with random lines in the shape of letters that appear to be floating or falling
The Big Collection of Love ASCII Art
The Big Collection of Love ASCII Art
an image of a computer screen with some lines going through it
an image of a computer screen with some lines going through it
a black background with the words asci motion code meets movement
a black background with the words asci motion code meets movement
shark
shark
a black and white pattern with vertical lines
a black and white pattern with vertical lines
˗ˏˋ ♡ ˎˊ˗
˗ˏˋ ♡ ˎˊ˗
Design 3-1. Data 4, 5, 6, 6, 6 | Database of Digital Art
Design 3-1. Data 4, 5, 6, 6, 6 | Database of Digital Art
a black and white image of a person's face with many numbers on it
a black and white image of a person's face with many numbers on it

Unicode Box-Drawing Characters

If you're working in a Unicode-compliant environment, you have access to an even wider range of box drawing characters. These include variations of thickness, style, and shading, which can be incredibly useful for creating intricate visuals. Some popular Unicode box-drawing characters include:

AD
  • '‍*shy*; Width and height reduction (U+FE01)' to shrink the size of box drawing characters.
  • '‍*hairsp*; Hair space (U+200A)' to add subtle variations in spacing.
  • '‍*emsp*; Em space (U+2003)' to create larger spacing variations.

By combining these Unicode box-drawing characters and spacing control characters, you can create complex, visually appealing designs in the terminal or any text-based interface.

Unic-serif Vertical Bar (U+2249)

A unique and decorative vertical line character is the Unic-serif vertical bar (U+2249). This character resembles a small, serif font bar, providing a more sophisticated look compared to standard '|' or box drawing characters. It's perfect for creating subtle, elegant visual separators.

Here's an example:

U+2249 Name U+2249 Age U+2249 Country --- U+2249 --- U+2249 --- John U+2249 30 U+2249 USA

Embracing these diverse ASCII and Unicode characters can greatly enrich your text-based visuals. Experiment with different combinations, thicknesses, and styles to create the perfect linea vertical ascii for your needs.

AD