Reference articles on history, science, culture and more
Encyclopedia

Output padding

Non-printing characters used after control operations

In computing, output padding is the insertion of non-printing characters into the device output stream to allow for a preceding control operation to take effect.

Output padding was necessary on many printing devices, notably Teletype and other mechanical terminals, after the issuance of a carriage return. Without the padding, following characters might print in the middle of the output line.

Output padding was also necessary on many display terminals after cursor positioning, scrolling, and other commands.

Typically the null character was used; the delete character was occasionally used. The number of padding characters depended on the particular device, but also sometimes on the horizontal position of the printing carriage.

Watch videos about Output paddingExplainers and documentaries on YouTube (opens in a new tab)

Sources and credits

This article is adapted from the Wikipedia article Output padding, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.

Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.