| advertise add site services publishers database health videos | ![]() | about toolbar stats live show health store more stuff JOIN/LOGIN |
Escape Restraint by Health Concerns: Escape Restraint 90 tablets... acuatlanta.net | Psoriasis - Escape This Disease To Enjoy Fresh And Healthy Skin deosteopathic.org | Character | Adamson and Associates dradamson.com | Fire Safety Tips: Your Escape Plan -- Emergency Medical Services Authority emsaonline.com |
In computing and telecommunication, an escape character is a single character designated to invoke an alternative interpretation on immediately subsequent characters in a character sequence. The term escape sequence refers to the escape character and the character or characters whose meaning is modified.
[edit] Examples[edit] Programming languagesMany modern programming languages specify the doublequote character (") as a delimiter for a string literal. The backslash \ escape character provides two ways to include doublequotes inside a string literal, either by modifying the meaning of the doublequote character embedded in the string (\" becomes "), or by modifying the meaning of the three characters that are the hexadecimal value of a doublequote character (\x22 becomes "). In Perl:
produces a syntax error, whereas:
produces the intended output. Another alternative:
uses numeric escape-sequence of hexadecimal "x22" for a quotemark. C (programming language), C++, and Java (programming language) all allow exactly the same two backslash escape styles, while quoted-printable uses a slightly different numeric escape sequence. Some programming languages also provide other ways to prevent this type of error, without requiring an escape character (see e.g. delimiter collision). [edit] In the Bourne shellIn sh, the * character is a wildcard character expanded via globbing. Without a preceding escape character, it will expand to the names of all files in the working directory that don't start with a period if and only if there are such files, otherwise * remains unexpanded. So to refer to a file literally called "*", the shell must be told not to interpret it in this way, by preceding it with a backslash ("\"). This modifies the interpretation of the asterisk ("*"). Compare:
[edit] Categories
Early reference to this term is found in Bob Bemer's IBM technical publications. The Escape key is usually found on standard PC keyboards. However it is commonly absent from keyboards for PDAs and other devices not designed primarily for ASCII communications, and not generally used as part of the common user interface for applications on the Windows operating system. The DEC VT220 series was one of the few popular keyboards that did not have a dedicated Esc key, instead using one of the keys above the main keypad. [edit] See also[edit] External links
|
| ↑ top of page ↑ | about thumbshots |