
characters per line

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. 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 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. 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.
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., ).
in programming.
many style guides for computer programming define the maximum or desirable number of characters in a line of source code: