I want to know what is vertical tab, form feeds and backspace character and how to use them in JavaScript? Or is there any chance I have to(should) use them?
Form feed is a page-breaking ASCII control character. It forces the printer to eject the current page and to continue printing at the top of another. Often, it will also cause a carriage return. The form feed character code is defined as 12 (0xC in hexadecimal), and may be represented as control+L or ^L .
The horizontal tab is usually inserted when the Tab key on a standard keyboard is pressed. A vertical tabulation (VT) also exists and has ASCII decimal character code 11 ( Ctrl + K or ^K), escape character \v .
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.
@maaartinus: \v is a traditional escape sequence for vertical tab (in the same group as \n , \r , and so on), and although Java doesn't support it in string literals (per section 3.10. 6 of the JLS), there are a few similar non-Java escape sequences that java.
\v
= U+000b
\f
= U+000c
\b
= U+0008
These escape sequences are defined probably because all other C-derived languages have them. Generally you won't need to use them, nor they will have useful effects on the text.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With