Characters per line

From Wikipedia, the free encyclopedia
(Redirected from 80 column)
Jump to navigation Jump to search

Template:Short description Script error: No such module "Multiple image". In typography and computing, characters per line (CPL) or terminal width refers to the maximal number of monospaced characters that may appear on a single line. It is similar to line length in typesetting.

History

The limit of the line length in 70–80 characters may well have originated from various technical limitations of various equipment. The American teletypewriters could type only 72 CPL, while the British ones even less, 70 CPL.[1] In the era of typewriters, most designs of the typewriter carriage were limited to 80–90 CPL. Standard paper sizes, such as the international standard A4, also impose limitations on line length: using the US standard Letter paper size (8.5×11"), it is only possible to print a maximum of 85 or 102 characters (with the font size either 10 or 12 characters per inch) without margins on the typewriter. With various margins – usually from Script error: No such module "convert". for each side, but there is no strict standard – these numbers may shrink to 55–78 CPL.

In computer technology, a line of an IBM punched card consisted of 80 characters. Widespread computer terminals such as DEC's VT52 and VT100 mostly followed this standard, showing 80 CPL and 24 lines. This line length was carried over into the original 80×25 text mode of the IBM PC, along with its clones and successors. To this day, virtual terminals most often display 80×24 characters.

The "long" line of 132 CPL comes from mainframes' line printers.[2][3][4] However, some printers or printing terminals could print as many as 216 CPL, given certain extra-wide paper sizes and/or extra-narrow font sizes.[5]

In modern computing

With the advent of desktop computing and publishing, and technologies such as TrueType used in word processing and web browsing, a uniform CPL has been made mostly obsolete. HTML (and some other modern text presentation formats) uses dynamic word wrapping which is more flexible than characters per line restriction and may produce a text block with non-rectangular shape, just like in paper typesetting.

Many plain text documents still conform to 72 CPL out of tradition (e.g., Template:IETF RFC).

In programming

Many style guides for computer programming define the maximum or desirable number of characters in a line of source code:

Characters per line Programming style
72
79
80

Template:Blist

88
  • Python, The Black code style[10]
90
100
102
120
132
140
180
undefined

With the increasing common use of larger widescreen monitors, some of these limits have been relaxed, as in the Linux kernel[26] and FreeBSD.[27]

See also

References

<templatestyles src="Reflist/styles.css" />

  1. Script error: No such module "citation/CS1".
  2. Script error: No such module "citation/CS1".
  3. Script error: No such module "citation/CS1".
  4. Script error: No such module "citation/CS1".
  5. Script error: No such module "citation/CS1".
  6. Ada 95 Quality and Style Guide
  7. agda/agda-stdlib: Style guide for the standard library
  8. PEP 8 Style Guide for Python Code
  9. Style Guide for Python Code
  10. Script error: No such module "citation/CS1".
  11. CCM4 self-imposed limit
  12. Android Code Style Guidelines for Contributors
  13. Common Lisp Style Guide
  14. Google Common Lisp Style Guide
  15. Google Java Style
  16. rustfmt Documentation
  17. How to Program Racket: a Style Guide
  18. Cite error: Script error: No such module "Namespace detect".Script error: No such module "Namespace detect".
  19. FORTRAN 90
  20. Script error: No such module "citation/CS1".
  21. Blink Coding Style Guidelines
  22. Moodle Coding Style
  23. Script error: No such module "citation/CS1".
  24. Mono Coding Guidelines
  25. Effective Go
  26. Script error: No such module "citation/CS1".
  27. Script error: No such module "citation/CS1".

Script error: No such module "Check for unknown parameters".