Misplaced Pages

Software flow control

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.

Software flow control is a method of flow control used in computer data links , especially RS-232 serial . It uses special codes, transmitted in-band , over the primary communications channel. These codes are generally called XOFF and XON (from "transmit off" and "transmit on", respectively). Thus, "software flow control" is sometimes called "XON/XOFF flow control". This is in contrast to flow control via dedicated out-of-band signals — " hardware flow control " — such as RS-232 RTS/CTS .

#865134

82-492: For systems using the ASCII character code, XOFF is generally represented using a character or byte with decimal value 19; XON with value 17. The ASCII standard does not reserve any control characters for use as XON/XOFF specifically. However, it does provide four generic "device control" characters (DC1 through DC4). The Teletype Model 33 ASR adopted two of these, DC3 and DC1, for use as XOFF and XON, respectively. This usage

164-525: A shift function (like in ITA2 ), which would allow more than 64 codes to be represented by a six-bit code . In a shifted code, some character codes determine choices between options for the following character codes. It allows compact encoding, but is less reliable for data transmission , as an error in transmitting the shift code typically makes a long part of the transmission unreadable. The standards committee decided against shifting, and so ASCII required at least

246-622: A sprite system that animated pre-loaded sprites over a scrolling background, which became the basis for Nintendo 's Radar Scope and Donkey Kong arcade hardware and home consoles such as the Nintendo Entertainment System . Parallax scrolling , which was first featured in Moon Patrol , involves several semi-transparent layers (called playfields), which scroll on top of each other at varying rates in order to give an early pseudo-3D illusion of depth. Belt scrolling

328-522: A BS (backspace). Instead, there was a key marked RUB OUT that sent code 127 (DEL). The purpose of this key was to erase mistakes in a manually-input paper tape: the operator had to push a button on the tape punch to back it up, then type the rubout, which punched all holes and replaced the mistake with a character that was intended to be ignored. Teletypes were commonly used with the less-expensive computers from Digital Equipment Corporation (DEC); these systems had to use what keys were available, and thus

410-458: A character count followed by the characters of the line and which used EBCDIC rather than ASCII encoding. The Telnet protocol defined an ASCII "Network Virtual Terminal" (NVT), so that connections between hosts with different line-ending conventions and character sets could be supported by transmitting a standard text format over the network. Telnet used ASCII along with CR-LF line endings, and software using other conventions would translate between

492-436: A display, horizontal scrolling is required to view all of it. In applications such as graphics and spreadsheets there is often more content than can fit either the width or the height of the screen at a comfortable scale, and scrolling in both directions is necessary. In 2006, Aza Raskin developed the infinite scrolling technique, whereby pagination of web pages is eliminated, in favor of continuously loading content as

574-428: A keypress and continue without further intervention until a further user action, or be entirely controlled by input devices . Scrolling may take place in discrete increments (perhaps one or a few lines of text at a time), or continuously ( smooth scrolling ). Frame rate is the speed at which an entire image is redisplayed. It is related to scrolling in that changes to text and image position can only happen as often as

656-491: A line terminator. The tty driver would handle the LF to CRLF conversion on output so files can be directly printed to terminal, and NL (newline) is often used to refer to CRLF in UNIX documents. Unix and Unix-like systems, and Amiga systems, adopted this convention from Multics. On the other hand, the original Macintosh OS , Apple DOS , and ProDOS used carriage return (CR) alone as

738-600: A line terminator; however, since Apple later replaced these obsolete operating systems with their Unix-based macOS (formerly named OS X) operating system, they now use line feed (LF) as well. The Radio Shack TRS-80 also used a lone CR to terminate lines. Computers attached to the ARPANET included machines running operating systems such as TOPS-10 and TENEX using CR-LF line endings; machines running operating systems such as Multics using LF line endings; and machines running operating systems such as OS/360 that represented lines as

820-400: A mode identified by a small hand icon (" hand tool ") on the document, which can then be dragged by clicking on it and moving the mouse as if sliding a large sheet of paper. When this feature is implemented on a touchscreen it is called kinetic scrolling . Touch-screens often use inertial scrolling , in which the scrolling motion of an object continues in a decaying fashion after release of

902-470: A playing field allows the player to control an object in a large contiguous area. Early examples of this method include Taito 's 1974 vertical-scrolling racing video game Speed Race , Sega 's 1976 forward-scrolling racing games Moto-Cross ( Fonz ) and Road Race , and Super Bug . Previously the flip-screen method was used to indicate moving backgrounds. The Namco Galaxian arcade system board introduced with Galaxian in 1979 pioneered

SECTION 10

#1732868866866

984-591: A reserved device control (DC0), synchronous idle (SYNC), and acknowledge (ACK). These were positioned to maximize the Hamming distance between their bit patterns. ASCII-code order is also called ASCIIbetical order. Collation of data is sometimes done in this order rather than "standard" alphabetical order ( collating sequence ). The main deviations in ASCII order are: An intermediate order converts uppercase letters to lowercase before comparing ASCII values. ASCII reserves

1066-541: A reserved meaning. Over time this interpretation has been co-opted and has eventually been changed. In modern usage, an ESC sent to the terminal usually indicates the start of a command sequence, which can be used to address the cursor, scroll a region, set/query various terminal properties, and more. They are usually in the form of a so-called " ANSI escape code " (often starting with a " Control Sequence Introducer ", "CSI", " ESC [ ") from ECMA-48 (1972) and its successors. Some escape sequences do not have introducers, like

1148-404: A seven-bit code. The committee considered an eight-bit code, since eight bits ( octets ) would allow two four-bit patterns to efficiently encode two digits with binary-coded decimal . However, it would require all data transmission to send eight bits when seven could suffice. The committee voted to use a seven-bit code to minimize costs associated with data transmission. Since perforated tape at

1230-438: A single line as will fit the width of the screen or window or, for text organised in columns, each column. Scrolling texts, also referred to as scrolltexts or scrollers , played an important part in the birth of the computer demo culture . The software crackers often used their deep knowledge of computer platforms to transform the information that accompanied their releases into crack intros . The sole role of these intros

1312-399: A terminal. Some operating systems such as CP/M tracked file length only in units of disk blocks, and used control-Z to mark the end of the actual text in the file. For these reasons, EOF, or end-of-file , was used colloquially and conventionally as a three-letter acronym for control-Z instead of SUBstitute. The end-of-text character ( ETX ), also known as control-C , was inappropriate for

1394-592: A time; this paging mode requires fewer resources than scrolling. Scrolling displays often also support page mode. Typically certain keys or key combinations page up or down; on PC-compatible keyboards the page up and page down keys or the space bar are used; earlier computers often used control key combinations. Some computer mice have a scroll wheel , which scrolls the display, often vertically, when rolled; others have scroll balls or tilt wheels which allow both vertical and horizontal scrolling. Some software supports other ways of scrolling. Adobe Reader has

1476-446: A variety of reasons, while using control-Z as the control character to end a file is analogous to the letter Z's position at the end of the alphabet, and serves as a very convenient mnemonic aid . A historically common and still prevalent convention uses the ETX character convention to interrupt and halt a program via an input data stream, usually from a keyboard. The Unix terminal driver uses

1558-731: Is 0101 in binary). Many of the non-alphanumeric characters were positioned to correspond to their shifted position on typewriters; an important subtlety is that these were based on mechanical typewriters, not electric typewriters. Mechanical typewriters followed the de facto standard set by the Remington No. 2 (1878), the first typewriter with a shift key, and the shifted values of 23456789- were "#$ %_&'()  – early typewriters omitted 0 and 1 , using O (capital letter o ) and l (lowercase letter L ) instead, but 1! and 0) pairs became standard once 0 and 1 became common. Thus, in ASCII !"#$ % were placed in

1640-424: Is a method used in side-scrolling beat 'em up games with a downward camera angle where players can move up and down in addition to left and right. A 1993 article by George Fitzmaurice studied spatially aware palmtop computers . These devices had a 3D sensor, and moving the device caused the contents to move as if the contents were fixed in place. This interaction could be referred to as “moving to scroll.” Also, if

1722-427: Is replaced by a second control-S to resume output. The 33 ASR also could be configured to employ control-R (DC2) and control-T (DC4) to start and stop the tape punch; on some units equipped with this function, the corresponding control character lettering on the keycap above the letter was TAPE and TAPE respectively. The Teletype could not move its typehead backwards, so it did not have a key on its keyboard to send

SECTION 20

#1732868866866

1804-404: Is the newline problem on various operating systems . Teletype machines required that a line of text be terminated with both "carriage return" (which moves the printhead to the beginning of the line) and "line feed" (which advances the paper one line without moving the printhead). The name "carriage return" comes from the fact that on a manual typewriter the carriage holding the paper moves while

1886-413: Is used extensively by low-speed devices, especially older printers and dumb terminals , to indicate they are temporarily unable to accept more data. Typically, this is due to a combination of limited output rate and any buffers being full. Some terminal control packages, such as termcap , employ "padding" (short delays using millisecond granularity) to allow such equipment sufficient time to perform

1968-486: The Comité Consultatif International Téléphonique et Télégraphique (CCITT) International Telegraph Alphabet No. 2 (ITA2) standard of 1932, FIELDATA (1956 ), and early EBCDIC (1963), more than 64 codes were required for ASCII. ITA2 was in turn based on Baudot code , the 5-bit telegraph code Émile Baudot invented in 1870 and patented in 1874. The committee debated the possibility of

2050-618: The Teletype Model 33 , which used the left-shifted layout corresponding to ASCII, differently from traditional mechanical typewriters. Electric typewriters, notably the IBM Selectric (1961), used a somewhat different layout that has become de facto standard on computers – following the IBM PC (1981), especially Model M (1984) – and thus shift values for symbols on modern keyboards do not correspond as closely to

2132-697: The United States Federal Government support ASCII, stating: I have also approved recommendations of the Secretary of Commerce [ Luther H. Hodges ] regarding standards for recording the Standard Code for Information Interchange on magnetic tapes and paper tapes when they are used in computer operations. All computers and related equipment configurations brought into the Federal Government inventory on and after July 1, 1969, must have

2214-449: The Win32 console . Robust XON is a technique to restart communication, just in case it was stopped by an accidentally received XOFF. The receiving unit sends periodic XON characters when it can receive data, and the line is idle. One common use is by serial printers (like HP LaserJet II) to indicate they are online and ready to receive data. The XON is sent every 1 to 30 seconds depending on

2296-667: The carriage return , line feed , and tab codes. For example, lowercase i would be represented in the ASCII encoding by binary 1101001 = hexadecimal 69 ( i is the ninth letter) = decimal 105. Despite being an American standard, ASCII does not have a code point for the cent (¢). It also does not support English terms with diacritical marks such as résumé and jalapeño , or proper nouns with diacritical marks such as Beyoncé (although on certain devices characters could be combined with punctuation such as Tilde (~) and Backtick (`) to approximate such characters.) The American Standard Code for Information Interchange (ASCII)

2378-641: The "Reset to Initial State", "RIS" command " ESC c ". In contrast, an ESC read from the terminal is most often used as an out-of-band character used to terminate an operation or special mode, as in the TECO and vi text editors . In graphical user interface (GUI) and windowing systems, ESC generally causes an application to abort its current operation or to exit (terminate) altogether. The inherent ambiguity of many control characters, combined with their historical usage, created problems when transferring "plain text" files between systems. The best example of this

2460-574: The "help" prefix command in GNU Emacs . Many more of the control characters have been assigned meanings quite different from their original ones. The "escape" character (ESC, code 27), for example, was intended originally to allow sending of other control characters as literals instead of invoking their meaning, an "escape sequence". This is the same meaning of "escape" encountered in URL encodings, C language strings, and other systems where certain characters have

2542-401: The "line feed" function (which causes a printer to advance its paper), and character 8 represents " backspace ". RFC   2822 refers to control characters that do not include carriage return, line feed or white space as non-whitespace control characters. Except for the control characters that prescribe elementary line-oriented formatting, ASCII does not define any mechanism for describing

Software flow control - Misplaced Pages Continue

2624-419: The ASCII chart in this article. Ninety-five of the encoded characters are printable: these include the digits 0 to 9 , lowercase letters a to z , uppercase letters A to Z , and punctuation symbols . In addition, the original ASCII specification included 33 non-printing control codes which originated with Teletype models ; most of these are now obsolete, although a few are still commonly used, such as

2706-676: The ASCII table as earlier keyboards did. The /? pair also dates to the No. 2, and the ,< .> pairs were used on some keyboards (others, including the No. 2, did not shift , (comma) or . (full stop) so they could be used in uppercase without unshifting). However, ASCII split the ;: pair (dating to No. 2), and rearranged mathematical symbols (varied conventions, commonly -* =+ ) to :* ;+ -= . Some then-common typewriter characters were not included, notably ½ ¼ ¢ , while ^ ` ~ were included as diacritics for international use, and < > for mathematical use, together with

2788-467: The DEL character was assigned to erase the previous character. Because of this, DEC video terminals (by default) sent the DEL character for the key marked "Backspace" while the separate key marked "Delete" sent an escape sequence ; many other competing terminals sent a BS character for the backspace key. The early Unix tty drivers, unlike some modern implementations, allowed only one character to be set to erase

2870-462: The Teletype Model 33 machine assignments for codes 17 (control-Q, DC1, also known as XON), 19 (control-S, DC3, also known as XOFF), and 127 ( delete ) became de facto standards. The Model 33 was also notable for taking the description of control-G (code 7, BEL, meaning audibly alert the operator) literally, as the unit contained an actual bell which it rang when it received a BEL character. Because

2952-418: The capability to use the Standard Code for Information Interchange and the formats prescribed by the magnetic tape and paper tape standards when these media are used. Scrolling In computer displays , filmmaking , television production , and other kinetic displays, scrolling is sliding text, images or video across a monitor or display, vertically or horizontally. "Scrolling," as such, does not change

3034-585: The change into its draft standard. The X3.2.4 task group voted its approval for the change to ASCII at its May 1963 meeting. Locating the lowercase letters in sticks 6 and 7 caused the characters to differ in bit pattern from the upper case by a single bit, which simplified case-insensitive character matching and the construction of keyboards and printers. The X3 committee made other changes, including other new characters (the brace and vertical bar characters), renaming some control characters (SOM became start of header (SOH)) and moving or removing others (RU

3116-493: The concept of "carriage return" was meaningless. IBM's PC DOS (also marketed as MS-DOS by Microsoft) inherited the convention by virtue of being loosely based on CP/M, and Windows in turn inherited it from MS-DOS. Requiring two characters to mark the end of a line introduces unnecessary complexity and ambiguity as to how to interpret each character when encountered by itself. To simplify matters, plain text data streams, including files, on Multics used line feed (LF) alone as

3198-524: The convention was so well established that backward compatibility necessitated continuing to follow it. When Gary Kildall created CP/M , he was inspired by some of the command line interface conventions used in DEC's RT-11 operating system. Until the introduction of PC DOS in 1981, IBM had no influence in this because their 1970s operating systems used EBCDIC encoding instead of ASCII, and they were oriented toward punch-card input and line printer output on which

3280-551: The data being transmitted without being mistaken for flow control commands. Any data containing the XOFF/XON codes thus must be encoded in some manner for proper transmission, with corresponding overhead. This is frequently done with some kind of escape sequence . For printing devices that directly interpret ASCII codes, this is not a large problem, because the XON and XOFF codes use ASCII "device control" code numbers. Software flow control

3362-455: The device with one hand. A study from 2013 by Selina Sharmin, Oleg Špakov, and Kari-Jouko Räihä explored the action of reading text on a screen while the text auto-scrolls based on the user's eye tracking patterns. The control group simply read text on a screen and manually scrolled. The study found that participants preferred to read primarily at the top of the screen, so the screen scrolled down whenever participants’ eyes began to look toward

Software flow control - Misplaced Pages Continue

3444-403: The direction desired; when the mouse is moved to the original position, scrolling stops. A few scroll wheels can also be tilted, scrolling horizontally in one direction until released. On touchscreen devices, scrolling is a multi-touch gesture, done by swiping a finger on the screen vertically in the direction opposite to where the user wants to scroll to. If any content is too wide to fit on

3526-659: The earlier five-bit ITA2 , which was also used by the competing Telex teleprinter system. Bob Bemer introduced features such as the escape sequence . His British colleague Hugh McGregor Ross helped to popularize this work – according to Bemer, "so much so that the code that was to become ASCII was first called the Bemer–Ross Code in Europe". Because of his extensive work on ASCII, Bemer has been called "the father of ASCII". On March 11, 1968, US President Lyndon B. Johnson mandated that all computers purchased by

3608-576: The earlier teleprinter encoding systems. Like other character encodings , ASCII specifies a correspondence between digital bit patterns and character symbols (i.e. graphemes and control characters ). This allows digital devices to communicate with each other and to process, store, and communicate character-oriented information such as written language. Before ASCII was developed, the encodings in use included 26 alphabetic characters, 10 numerical digits , and from 11 to 25 special graphic symbols. To include all these, and control characters compatible with

3690-544: The end-of-transmission character ( EOT ), also known as control-D, to indicate the end of a data stream. In the C programming language , and in Unix conventions, the null character is used to terminate text strings ; such null-terminated strings can be known in abbreviation as ASCIZ or ASCIIZ, where here Z stands for "zero". Other representations might be used by specialist equipment, for example ISO 2047 graphics or hexadecimal numbers. Codes 20 hex to 7E hex , known as

3772-624: The first 32 code points (numbers 0–31 decimal) and the last one (number 127 decimal) for control characters . These are codes intended to control peripheral devices (such as printers ), or to provide meta-information about data streams, such as those stored on magnetic tape. Despite their name, these code points do not represent printable characters (i.e. they are not characters at all, but signals). For debugging purposes, "placeholder" symbols (such as those given in ISO 2047 and its predecessors) are assigned to them. For example, character 0x0A represents

3854-499: The image can be redisplayed. When frame rate is a limiting factor, one smooth scrolling technique is to blur images during movement that would otherwise appear to "jump". Scrolling is often carried out on a computer by the CPU ( software scrolling ) or by a graphics processor . Some systems feature hardware scrolling , where an image may be offset as it is displayed, without any frame buffer manipulation (see also hardware windowing ). This

3936-515: The intervention of higher levels. To handle the latency caused by builtin FIFOs , more advanced UARTs, like the 16950, provide "on-chip" software flow control. UARTs that lack such support, like the 16550 , may suffer from buffer overruns when using software flow control, although this can be somewhat mitigated by disabling the UART's FIFO. Finally, since the XOFF/XON codes are sent in-band, they cannot appear in

4018-448: The keytop for the O key also showed a left-arrow symbol (from ASCII-1963, which had this character instead of underscore ), a noncompliant use of code 15 (control-O, shift in) interpreted as "delete previous character" was also adopted by many early timesharing systems but eventually became neglected. When a Teletype 33 ASR equipped with the automatic paper tape reader received a control-S (XOFF, an abbreviation for transmit off), it caused

4100-401: The layout of the text or pictures but moves ( pans or tilts ) the user's view across what is apparently a larger image that is not wholly seen. A common television and movie special effect is to scroll credits, while leaving the background stationary. Scrolling may take place completely without user intervention (as in film credits) or, on an interactive device, be triggered by touchscreen or

4182-776: The local conventions and the NVT. The File Transfer Protocol adopted the Telnet protocol, including use of the Network Virtual Terminal, for use when transmitting commands and transferring data in the default ASCII mode. This adds complexity to implementations of those protocols, and to other network protocols, such as those used for E-mail and the World Wide Web, on systems not using the NVT's CR-LF line-ending convention. The PDP-6 monitor, and its PDP-10 successor TOPS-10, used control-Z (SUB) as an end-of-file indication for input from

SECTION 50

#1732868866866

4264-454: The name "software flow control" implies, flow control using this method is usually implemented in software (or firmware ), which can cause further delays in XOFF response. These delays can lead to data corruption due to buffer overruns . Hardware flow control, on the other hand, is typically under the direct control of the transmitting UART , which is able to cease transmission immediately, without

4346-399: The other end resumes transmission. For example, one may imagine a computer sending data to a slow printer . Since the computer is faster at sending data than the printer can print it, the printer falls behind and approaches a situation where it would be overwhelmed by the data. The printer reacts to this situation by sending XOFF to the computer, which temporarily stops sending data. When

4428-587: The other to receive. Hardware flow control requires additional wires between the two devices. It also requires specific hardware implementation, which had more significant costs in earlier days of computing (i.e., 1960s and 70s). However, software flow control is not without its problems. The most important drawback is that software flow control is less reliable. Sending XOFF requires at least one character time to transmit, and may be queued behind already-transmitted data still in buffers. Hardware signals may be asserted almost instantaneously, and out-of-order. As

4510-452: The previous character in canonical input processing (where a very simple line editor is available); this could be set to BS or DEL, but not both, resulting in recurring situations of ambiguity where users had to decide depending on what terminal they were using ( shells that allow line editing, such as ksh , bash , and zsh , understand both). The assumption that no key sent a BS character allowed Ctrl+H to be used for other purposes, such as

4592-515: The previous section. Code 7F hex corresponds to the non-printable "delete" (DEL) control character and is therefore omitted from this chart; it is covered in the previous section's chart. Earlier versions of ASCII used the up arrow instead of the caret (5E hex ) and the left arrow instead of the underscore (5F hex ). ASCII was first used commercially during 1963 as a seven-bit teleprinter code for American Telephone & Telegraph 's TWX (TeletypeWriter eXchange) network. TWX originally used

4674-413: The printable characters, represent letters, digits, punctuation marks , and a few miscellaneous symbols. There are 95 printable characters in total. Code 20 hex , the "space" character, denotes the space between words, as produced by the space bar of a keyboard. Since the space character is considered an invisible graphic (rather than a control character) it is listed in the table below instead of in

4756-424: The printer is again ready to receive more data, it sends XON to the computer, which starts sending data again. XOFF/XON can be employed in both directions, for example, two teleprinters connected to each other. The principal advantage of software flow control is the reduction in the number of electrical conductors between sender and receiver. Given a common ground , only two signals are needed, one to send and

4838-513: The printer's firmware design. ASCII ASCII ( / ˈ æ s k iː / ASS -kee ), an acronym for American Standard Code for Information Interchange , is a character encoding standard for electronic communication. ASCII codes represent text in computers, telecommunications equipment , and other devices. ASCII has just 128 code points , of which only 95 are printable characters , which severely limit its scope. The set of available punctuation had significant impact on

4920-444: The proposed Bell code and ASCII were both ordered for more convenient sorting (i.e., alphabetization) of lists and added features for devices other than teleprinters. The use of ASCII format for Network Interchange was described in 1969. That document was formally elevated to an Internet Standard in 2015. Originally based on the (modern) English alphabet , ASCII encodes 128 specified characters into seven-bit integers as shown by

5002-432: The requested actions without the need to assert XOFF. XOFF/XON are still sometimes used manually by computer operators, to pause and restart output which otherwise would scroll off the display too quickly. Terminal emulator software generally implements XOFF/XON support as a basic function. This generally includes the system console on modern Unix and Linux machines, as well as GUI emulators such as xterm and

SECTION 60

#1732868866866

5084-516: The same reason, many special signs commonly used as separators were placed before digits. The committee decided it was important to support uppercase 64-character alphabets , and chose to pattern ASCII so it could be reduced easily to a usable 64-character set of graphic codes, as was done in the DEC SIXBIT code (1963). Lowercase letters were therefore not interleaved with uppercase . To keep options available for lowercase letters and other graphics,

5166-515: The screen are often displayed wrapped and sized to fit the screen width, and scrolled vertically to bring desired content into view. It is possible to display lines too long to fit the display without wrapping, scrolling horizontally to view each entire line. However, this requires inconvenient constant line-by-line scrolling, while vertical scrolling is only needed after reading a full screenful. Software such as word processors and web browsers normally uses word-wrapping to display as many words in

5248-494: The second stick, positions 1–5, corresponding to the digits 1–5 in the adjacent stick. The parentheses could not correspond to 9 and 0 , however, because the place corresponding to 0 was taken by the space character. This was accommodated by removing _ (underscore) from 6 and shifting the remaining characters, which corresponded to many European typewriters that placed the parentheses with 8 and 9 . This discrepancy from typewriters led to bit-paired keyboards , notably

5330-534: The simple line characters \ | (in addition to common / ). The @ symbol was not used in continental Europe and the committee expected it would be replaced by an accented À in the French variation, so the @ was placed in position 40 hex , right before the letter A. The control codes felt essential for data transmission were the start of message (SOM), end of address (EOA), end of message (EOM), end of transmission (EOT), "who are you?" (WRU), "are you?" (RU),

5412-402: The special and numeric codes were arranged before the letters, and the letter A was placed in position 41 hex to match the draft of the corresponding British standard. The digits 0–9 are prefixed with 011, but the remaining 4 bits correspond to their respective values in binary, making conversion with binary-coded decimal straightforward (for example, 5 in encoded to 011 0101 , where 5

5494-425: The standard is unclear about the meaning of "delete". Probably the most influential single device affecting the interpretation of these characters was the Teletype Model 33 ASR, which was a printing terminal with an available paper tape reader/punch option. Paper tape was a very popular medium for long-term program storage until the 1980s, less costly and in some ways less fragile than magnetic tape. In particular,

5576-440: The structure or appearance of text within a document. Other schemes, such as markup languages , address page and document layout and formatting. The original ASCII standard used only short descriptive phrases for each control character. The ambiguity this caused was sometimes intentional, for example where a character would be used slightly differently on a terminal link than on a data stream , and sometimes accidental, for example

5658-511: The syntax of computer languages and text markup. ASCII hugely influenced the design of character sets used by modern computers, including Unicode which has over a million code points, but the first 128 of these are the same as ASCII. The Internet Assigned Numbers Authority (IANA) prefers the name US-ASCII for this character encoding. ASCII is one of the IEEE milestones . ASCII was developed in part from telegraph code . Its first commercial use

5740-441: The tape reader to stop; receiving control-Q (XON, transmit on) caused the tape reader to resume. This so-called flow control technique became adopted by several early computer operating systems as a "handshaking" signal warning a sender to stop transmission because of impending buffer overflow ; it persists to this day in many systems as a manual output control technique. On some systems, control-S retains its meaning, but control-Q

5822-600: The time could record eight bits in one position, it also allowed for a parity bit for error checking if desired. Eight-bit machines (with octets as the native data type) that did not use parity checking typically set the eighth bit to 0. The code itself was patterned so that most control codes were together and all graphic codes were together, for ease of identification. The first two so-called ASCII sticks (32 positions) were reserved for control characters. The "space" character had to come before graphics to make sorting easier, so it became position 20 hex ; for

5904-414: The touch, simulating the appearance of an object with inertia . An early implementation of such behavior was in the "Star7" PDA of Sun Microsystems ca. 1991–1992. Scrolling can be controlled in other software-dependent ways by a PC mouse. Some scroll wheels can be pressed down, functioning like a button. Depending on the software, this allows both horizontal and vertical scrolling by dragging in

5986-447: The typebars that strike the ribbon remain stationary. The entire carriage had to be pushed (returned) to the right in order to position the paper for the next line. DEC operating systems ( OS/8 , RT-11 , RSX-11 , RSTS , TOPS-10 , etc.) used both characters to mark the end of a line so that the console device (originally Teletype machines) would work. By the time so-called "glass TTYs" (later called CRTs or "dumb terminals") came along,

6068-543: The user moved the device away from their body, they would zoom in; conversely, the device would zoom out if the user pulled the device closer to them. Smartphone cameras and “ optical flow ” image analysis utilize this technique nowadays. A 1996 research paper by Jun Rekimoto analyzed tilting operations as scrolling techniques on small screen interfaces. Users could not only tilt to scroll, but also tilt to select menu items. These techniques proved especially useful for field workers, since they only needed to hold and control

6150-534: The user scrolls down the page. Raskin later expressed regret at the invention, describing it as "one of the first products designed to not simply help a user, but to deliberately keep them online for as long as possible". Usability research suggests infinite scrolling can present an accessibility issue. The lack of stopping cues has been described as a pathway to smartphone addiction and social media addiction . In languages written horizontally , such as most Western languages, text documents longer than will fit on

6232-431: Was copied by others, and is now a de facto standard . The keyboard equivalents of Ctrl + S for XOFF, and Ctrl + Q for XON, also derive from this usage. When one end of a data link is unable to accept any more data (or approaching that point), it sends XOFF to the other end. The other end receives the XOFF code, and suspends transmission . Once the first end is ready to accept data again, it sends XON, and

6314-704: Was developed under the auspices of a committee of the American Standards Association (ASA), called the X3 committee, by its X3.2 (later X3L2) subcommittee, and later by that subcommittee's X3.2.4 working group (now INCITS ). The ASA later became the United States of America Standards Institute (USASI) and ultimately became the American National Standards Institute (ANSI). With the other special characters and control codes filled in, ASCII

6396-433: Was especially common in 8 and 16bit video game consoles. In a WIMP -style graphical user interface (GUI), user-controlled scrolling is carried out by manipulating a scrollbar with a mouse, or using keyboard shortcuts , often the arrow keys . Scrolling is often supported by text user interfaces and command line interfaces . Older computer terminals changed the entire contents of the display one screenful ("page") at

6478-554: Was in the Teletype Model 33 and the Teletype Model 35 as a seven- bit teleprinter code promoted by Bell data services. Work on the ASCII standard began in May 1961, with the first meeting of the American Standards Association's (ASA) (now the American National Standards Institute or ANSI) X3.2 subcommittee. The first edition of the standard was published in 1963, underwent a major revision during 1967, and experienced its most recent update during 1986. Compared to earlier telegraph codes,

6560-676: Was published as ASA X3.4-1963, leaving 28 code positions without any assigned meaning, reserved for future standardization, and one unassigned control code. There was some debate at the time whether there should be more control characters rather than the lowercase alphabet. The indecision did not last long: during May 1963 the CCITT Working Party on the New Telegraph Alphabet proposed to assign lowercase characters to sticks 6 and 7, and International Organization for Standardization TC 97 SC 2 voted during October to incorporate

6642-450: Was removed). ASCII was subsequently updated as USAS X3.4-1967, then USAS X3.4-1968, ANSI X3.4-1977, and finally, ANSI X3.4-1986. In the X3.15 standard, the X3 committee also addressed how ASCII should be transmitted ( least significant bit first) and recorded on perforated tape. They proposed a 9-track standard for magnetic tape and attempted to deal with some punched card formats. The X3.2 subcommittee designed ASCII based on

6724-405: Was to scroll the text on the screen in an impressive way. Scrolling is commonly used to display the credits at the end of films and television programs . Scrolling is often used in the form of a news ticker towards the bottom of the picture for content such as television news , scrolling sideways across the screen, delivering short-form content. In computer and video games , scrolling of

#865134