What is a vertical tab?

Character EncodingAsciiSpecial CharactersCharacter

Character Encoding Problem Overview


What was the original historical use of the vertical tab character (\v in the C language, ASCII 11)?

Did it ever have a key on a keyboard? How did someone generate it?

Is there any language or system still in use today where the vertical tab character does something interesting and useful?

Character Encoding Solutions


Solution 1 - Character Encoding

Vertical tab was used to speed up printer vertical movement. Some printers used special tab belts with various tab spots. This helped align content on forms. VT to header space, fill in header, VT to body area, fill in lines, VT to form footer. Generally it was coded in the program as a character constant. From the keyboard, it would be CTRL-K.

I don't believe anyone would have a reason to use it any more. Most forms are generated in a printer control language like postscript.

@Talvi Wilson noted it used in python '\v'.

print("hello\vworld")

Output:

hello
     world

The above output appears to result in the default vertical size being one line. I have tested with perl "\013" and the same output occurs. This could be used to do line feed without a carriage return on devices with convert linefeed to carriage-return + linefeed.

Solution 2 - Character Encoding

Microsoft Word uses VT as a line separator in order to distinguish it from the normal new line function, which is used as a paragraph separator.

Solution 3 - Character Encoding

In the medical industry, VT is used as the start of frame character in the MLLP/LLP/HLLP protocols that are used to frame HL-7 data, which has been a standard for medical exchange since the late 80s and is still in wide use.

Solution 4 - Character Encoding

It was used during the typewriter era to move down a page to the next vertical stop, typically spaced 6 lines apart (much the same way horizontal tabs move along a line by 8 characters).

In modern day settings, the vt is of very little, if any, significance.

Solution 5 - Character Encoding

The ASCII vertical tab (\x0B)is still used in some databases and file formats as a new line WITHIN a field. For example:

Solution 6 - Character Encoding

I have found that the VT char is used in pptx text boxes at the end of each line shown in the box in oder to adjust the text to the size of the box. It seems to be automatically generated by powerpoint (not introduced by the user) in order to move the text to the next line and fix the complete text block to the text box. In the example below, in the position of §:

"This is a text §
inside a text box"

Solution 7 - Character Encoding

A vertical tab was the opposite of a line feed i.e. it went upwards by one line. It had nothing to do with tab positions. If you want to prove this, try it on an RS232 terminal.

Solution 8 - Character Encoding

similar to R0byn's experience, i was experimenting with a Powerpoint slide presentation and dumped out the main body of text on the slide, finding that all the places where one would typically find carriage return (ASCII 13/0x0d/^M) or line feed/new line (ASCII 10/0x0a/^J) characters, it uses vertical tab (ASCII 11/0x0b/^K) instead, presumably for the exact reason that dan04 described above for Word: to serve as a "newline" while staying within the same paragraph. good question though as i totally thought this character would be as useless as a teletype terminal today.

Solution 9 - Character Encoding

I believe it's still being used, not sure exactly. There might be even a key combination of it.

As English is written Left to Right, Arabic Right to Left, there are languages in world that are also written top to bottom. In that case a vertical tab might be useful same as the horizontal tab is used for English text.

I tried searching, but couldn't find anything useful yet.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestiondmazzoniView Question on Stackoverflow
Solution 1 - Character EncodingBillThorView Answer on Stackoverflow
Solution 2 - Character Encodingdan04View Answer on Stackoverflow
Solution 3 - Character EncodingJamesView Answer on Stackoverflow
Solution 4 - Character EncodingAlex EssilfieView Answer on Stackoverflow
Solution 5 - Character EncodingJack JamesView Answer on Stackoverflow
Solution 6 - Character Encodingmerce_00View Answer on Stackoverflow
Solution 7 - Character EncodingSeawolf409View Answer on Stackoverflow
Solution 8 - Character EncodingwescpyView Answer on Stackoverflow
Solution 9 - Character EncodingmtkView Answer on Stackoverflow