Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Escape character
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Definition== An escape character may not have its own meaning, so all escape sequences are of two or more characters. Escape characters are part of the [[formal syntax|syntax]] for many programming languages, data formats, and communication protocols. For a given [[alphabet (computer science)|alphabet]] an escape character's purpose is to start character sequences (so named [[escape sequence]]s), which have to be interpreted differently from the same characters occurring without the prefixed escape character. The functions of escape sequences include: * To encode a syntactic entity, such as device commands or special data, which cannot be directly represented by the alphabet. * To represent characters, referred to as ''character quoting'', which cannot be typed in the current context, or would have an undesired interpretation. In this case, an escape sequence is a [[digraph (computing)|digraph]] consisting of an escape character itself and a "quoted" character. ===Control character=== Generally, an escape character is not a particular case of (device) [[control character]]s, nor vice versa. If we define control characters as non-[[graphic character|graphic]], or as having a special meaning for an output device (e.g. [[computer printer|printer]] or [[text terminal]]) then any escape character for this device is a control one. But escape characters used in programming (such as the [[backslash]], "\") are graphic, hence are not control characters. Conversely most (but not all) of the [[ASCII]] "control characters" have some control function in isolation, therefore they are not escape characters. In many programming languages, an escape character also forms some escape sequences which are referred to as control characters. For example, [[Line break (computing)|line break]] has an escape sequence of {{code|\n}}.
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Escape character
(section)
Add topic