Control Characters
A control character is a character that, in isolation, has some control function, such as carriage return (CR). Escape sequences, by contrast, consist of an escape character or sequence which changes the interpretation of following characters.
A common use of escape sequences is in fact to remove control characters found in a binary data stream so that they will not cause their control function by mistake. In this case, the control character is replaced by a defined "escape character" (which need not be the US-ASCII Escape Character) and another character; after exiting the context where the control character would have caused an action, the sequence is recognized and replaced by the removed character. To transmit the "escape character" itself, two copies are sent.
The earlier VT52 terminal used simple digraph commands like escape-A: in isolation, "A" simply meant the letter "A", but as part of the escape sequence "escape-A", it had a different meaning. The VT52 also supported parameters: it was not a straightforward control language encoded as substitution.
Read more about this topic: Escape Sequence
Famous quotes containing the words control and/or characters:
“Have we any control over being born?, my friend asked in despair. No, the job is done for us while were sleeping, so to speak, and when we wake up everything is all set. We merely appear, like an ornate celebrity wheeled out in a wheelchair. I dont remember, my friend claimed. No need to, I said: what need have us free-loaders for any special alertness? Were done for.”
—Marvin Cohen, U.S. author and humorist. The Self-Devoted Friend, New Directions (1967)
“To marry a man out of pity is folly; and, if you think you are going to influence the kind of fellow who has never had a chance, poor devil, you are profoundly mistaken. One can only influence the strong characters in life, not the weak; and it is the height of vanity to suppose that you can make an honest man of anyone.”
—Margot Asquith (18641945)