Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is vertical tab, form feeds and backspace character? How to use them in JavaScript?

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?

like image 246
Just a learner Avatar asked Mar 04 '10 05:03

Just a learner


People also ask

What is form feed character in Javascript?

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 .

What is a vertical tab character?

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 .

What does vertical tab mean?

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.

What is vertical tab in Java?

@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.


1 Answers

  • Vertical tab: \v = U+000b
    • "Position the form at the next line tab stop." (ignored on Safari.)
  • Form feed: \f = U+000c
    • "On printers, load the next page. In some terminal emulators, it clears the screen." (truncates the string on Safari.)
  • Backspace: \b = U+0008
    • "Move the cursor one position leftwards." (ignored on Safari.)

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.

like image 56
kennytm Avatar answered Sep 30 '22 17:09

kennytm