儿童感冒流鼻涕吃什么药好得快| ri是什么意思| 什么烧肉好吃| ur品牌属于什么档次| 疼风是什么原因引起的| 车厘子和樱桃什么区别| 淋巴滤泡增生是什么意思| 肛门潮湿是什么情况| bp在医学上是什么意思| 杯葛是什么意思| 梗阻是什么意思| 为什么要小心AB型血的人| 黄色裤子配什么上衣| 手发抖吃什么药| 秋葵什么时候播种| 什么是cosplay| 10年是什么年| 做什么运动能瘦肚子| 梨子什么季节成熟| 天气热吃什么好| 背德感是什么意思| 看淡一切对什么都没兴趣| 干燥综合症是什么病| 8000年前是什么朝代| 打胰岛素是什么病| 为什么来完月经下面痒| 破伤风有什么症状| 润滑油可以用什么代替| 舌吻是什么意思| 乳钉的作用是什么| 经信局是做什么的| 喝什么可以减肥瘦肚子| 15号来月经排卵期是什么时候| 尿蛋白高是什么原因引起的| 嗣后是什么意思| 鸡蛋胶是什么鱼胶| 肠道感染用什么抗生素| 梦字五行属什么| 忏悔是什么意思| 番茄和蕃茄有什么区别| 才高八斗是什么意思| 临床路径是什么意思| 吗啡是什么药| 沙棘不能和什么一起吃| 2004属什么生肖| 印泥干了用什么稀释| 不加要是什么字| 助听器什么牌子好| 1972年出生属什么生肖| 鱼油对身体有什么好处| 525什么星座| 天花板是什么意思| 1月22号什么星座| 腺样体肥大吃什么药| 浅是什么意思| 膀胱过度活动症是什么原因引起的| 梦到喝酒是什么意思| 邪火是什么意思| 为老不尊是什么意思| 莲藕是荷花的什么部位| 三峡大坝什么时候建成的| 子母环是什么形状图片| 高三吃什么补脑抗疲劳| 心影饱满是什么意思| 记录是什么意思| 中耳炎用什么药| 肇庆有什么大学| 吃多种维生素有什么好处和坏处| 秦始皇为什么焚书坑儒| 吃什么食物养肝| 桃子吃了有什么好处| 五月份是什么季节| 嘴贱什么意思| 吃狗肉不能和什么一起吃| 看门神是什么生肖| 舌头痒痒的是什么原因| 头晕目眩是什么病的征兆| 什么门关不上| 贤良淑德后半句是什么| 什么是讨好型人格| 甲状腺结节是什么原因引起的| 吉尼斯是什么意思| 吃饭快的人是什么性格| 更年期出汗多是什么原因| 考教师编制需要什么条件| 阴道有味道是什么原因| 猪狗不如是什么意思| 什么叫cd| 梦见花开是什么预兆| 垂的第三笔是什么| 为什么会得阴虱| 手指脱皮是什么原因| 月经期不能吃什么水果| 左甲状腺是什么病| 心脏下边是什么器官| 什么是丹凤眼| 女人小便出血是什么原因| 属牛是什么命| 做胃镜之前需要注意什么| 碳素笔是什么笔| 氨酶偏高是什么意思| 为什么会突发脑溢血| 大姨妈吃什么| 动手术后吃什么对伤口恢复比较快| 农历七月初七是什么节日| 麻黄是什么| 哏是什么意思| 大熊猫属于什么科| 讲义气是什么意思| 骨头是什么垃圾| 苏轼是什么派诗人| 大枣吃多了有什么危害| 心跳不规律是什么原因| 地漏什么牌子的好| 胎毒是什么| 包皮炎用什么药最有效| 七月二十二什么日子| 脚板麻木是什么原因| 甲流是什么病| 天梭属于什么档次| 1987年什么命| 什么是结缔组织病| 偏头痛是什么原因| 人的舌头有什么作用| 手脚麻木挂什么科| 食物发霉是什么菌| bjd娃娃是什么| 打呼噜是什么原因造成的| 食道炎吃什么药好| 晚上肚子疼是什么原因| 玛丽苏什么意思| 宫腔粘连是什么原因引起的| 荆州有什么大学| 心率低有什么症状| 转氨酶升高有什么症状| 榴莲不可以和什么一起吃| 水肿是什么原因引起的| 男人吃秋葵有什么好处| 回潮是什么意思| 蛋白粉什么时候喝效果最好| 莹字五行属什么| 7月25号是什么星座| 水淀粉是什么| 小孩发烧可以吃什么水果| 感冒流鼻涕吃什么药好得快| ein是什么意思| 为什么总打喷嚏| 拔牙前需要做什么检查| 点痣挂什么科| 梦见考试是什么预兆| 升米恩斗米仇什么意思| 羊排和什么一起炖好吃| 轴位是什么意思| 草字头一个辛读什么| 什么时候闰十月| 嘴里发咸是什么原因| 七月十五日是什么节日| emg是什么意思| 做梦吃酒席什么预兆| 螺旋杆菌是什么病| 阴虱是什么| 红色和什么颜色搭配好看| 五月初五是什么星座| 元旦送什么礼物好| 姘头是什么意思| 喝咖啡心慌是什么原因| 云为什么不会掉下来| 拉夏贝尔属于什么档次| 右肺中叶小结节是什么意思严重吗| 李世民是什么民族| 晚上难入睡是什么原因| 什么花的花语是自由| 什么样的孕妇容易翻盘| 痤疮用什么药治最好效果最快| 十八层地狱分别叫什么| 什么是血清| 暴发火眼吃什么药| 站姐是什么意思| 来大姨妈可以吃什么水果| 黄芪什么味道| 自闭症是什么病| 人生的意义是什么| 睡眠时间短是什么原因| y谷氨酰基转移酶高是什么原因| 喝石斛水有什么禁忌| 牛皮癣是什么| 世界上最大的动物是什么| 姗字五行属什么| 地图舌吃什么药| 慢性胰腺炎有什么症状| 什么品牌的帽子好| 恐龙生活在什么时代| 生长痛是什么| 一天什么时候最热| other是什么意思| 小学什么时候报名| 双角子宫是什么意思| 西洋参什么季节吃最好| 夜里12点是什么时辰| 打封闭针有什么坏处| 打摆子是什么病| 大姨妈延迟是什么原因| 白斑有什么症状图片| 垂头丧气是什么意思| 螺蛳粉为什么那么臭| 甲醛中毒吃什么药| 胃经当令是什么时辰| 关我什么事| 大便次数多是什么原因| 天天喝奶茶有什么危害| 叛变是什么意思| 柑橘溃疡病用什么药| 沙棘原浆有什么作用| 什么时候称体重最准确| 咖啡伴侣是什么东西| 补气血什么季节补最好| 小名是什么意思| 足癣用什么药最快好| 水肺潜水是什么意思| 周围神经病是什么意思| 佐匹克隆是什么药| 女人肾虚吃什么| 足字旁的字跟什么有关| 低密度脂蛋白胆固醇偏低是什么意思| 独立户口需要什么条件办理| 大姨妈每个月提前来是什么原因| 双鱼和什么星座最配| 肺在五行中属什么| 低血压不能吃什么食物| 女人排卵是什么时候| 楚国是现在的什么地方| hcg是什么检查项目| 曹仁和曹操什么关系| 说话声音小是什么原因| 晚上睡觉腿酸难受是什么原因| 魔芋是什么东西做的| 太虚是什么意思| 眼皮为什么会跳| 前列腺有什么作用| 经常流鼻血是什么原因| 03属什么生肖| cpb是什么牌子| 今年71岁属什么生肖| 空气过敏是什么症状| 什么是hr| 不安腿是什么症状| fazeya是什么牌子| 君无戏言什么意思| 牙龈翻瓣术是什么意思| 物欲横流是什么意思| 腹泻能吃什么水果| 男性内分泌失调吃什么药| 什么的走| 深情什么意思| 鱼豆腐是用什么做的| 小淋巴结是什么意思| 芙蓉花是什么花| ad什么时候吃最好| 安全期什么时候| d3什么时候吃效果最好| diff是什么意思| 狗为什么喜欢吃骨头| 胃胀胃不舒服吃什么药| t是什么意思| 百度Jump to content

孝感市人民政府台湾事务办公室

From Wikipedia, the free encyclopedia
百度 2018年,在三次费改的预期下,非理性竞争的苗头更明显,保监会开年就重罚车险巨头,意味着车险市场进入强监管周期。

In computing, an escape sequence is a sequence of characters that has a special semantic meaning based on an established convention that specifies an escape character prefix in addition to the syntax of the rest of the text of a sequence.[1][2] A convention can define any particular character code as a sequence prefix. Some conventions use a normal, printable character such as backslash (\) or ampersand (&). Others use a non-printable (a.k.a. control) character such as ASCII escape.

Escape sequences date back at least to the 1874 Baudot code.[3][4][5]

Examples

[edit]

Data transmission

[edit]

A common use of an escape sequence is to remove control characters from a data stream so that it does not cause its control function by mistake. The control character is replaced with an escape character and one or more other subsequent characters. After escaping the normal context in which the control character would have caused an action, the sequence is replaced by the removed character.[6] To transmit the escape character itself, two copies are sent.[7]

Text literal

[edit]

An escape sequence is often used in character and string literals, to encode characters which are not printable or clash with the syntax of characters or strings. For example, control characters might not be allowed in a source file or may have undesirable side-effects if typed into a command.

In C and many derivative programming languages, a backslash (\) in a string literal marks the beginning of an escape sequence.[8][9] Common escape sequences include: carriage return \r, newline \n, tab \t. To account for the fact that using a printable character for escape causes that character to lose its normal meaning, a sequence of two backslash characters (\\) encodes a single backslash. An escape sequence can also specify a character by its code value. For example, the backslash can be encoded as either \x5c or \134 which specify the character code value as hexadecimal and octal, respectively.

A backslash immediately followed by a newline (which is necessarily outside of a string literal) does not mark an escape sequence. The C preprocessor joins the line with the subsequent line.[10]

Quoting escape

[edit]

When an escape character is needed within a string literal, there are two common strategies:

  • Doubled delimiter – For example, 'He didn''t do it.')[7]
  • Secondary escape sequence – For example, the command prompt command echo Cut^&Paste outputs "Cut&Paste" in by escaping the ampersand operator with a caret (^)[6]

In C and many related languages, the escape character is the backslash (\). The single quotation mark character can be coded as '\'' since ''' is not valid. As a string literal is delimited by double-quotes (") the content cannot contain a double-quote unless it is escaped ("\"") or via a sequence that specifies the code of the double-quote character (\x22).

In Perl or Python 2, the following is invalid syntax:

print "Nancy said "Hello World!" to the crowd."

This can be fixed by inserted backslash to escape:

print "Nancy said \"Hello World!\" to the crowd."

Alternatively, the following uses "\x" to indicate the subsequent two characters are hexadecimal digits; "22" being the hexadecimal ASCII value for double-quote.

print "Nancy said \x22Hello World!\x22 to the crowd."

C, C++, Java, and Ruby allow the same two backslash escape styles. PostScript and rich text format (RTF) also use backslash escapes. The quoted-printable encoding uses the equals sign as an escape character. URL and URI use percent-encoding to quote characters with a special meaning, as for non-ASCII characters.

ANSI escape sequences

[edit]

The VT52 terminal used simple digraph commands like escape-A. Without the escape character prefix, 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.

The later VT100 terminal implemented the more sophisticated ANSI escape sequences standard (now ECMA-48) for functions such as controlling cursor movement, character set, and display enhancements. The HP 2640 series had perhaps the most elaborate escape sequences for block and character modes, programming keys and their soft labels, graphics vectors, and even saving data to tape or disk files.

In Windows (and older DOS), a utility, ANSI.SYS,[11] can be used to enable ANSI escape sequence support. In DOS via $e in the PROMPT command), and in 16-bit Windows via a command window. In Unix and Unix-like systems, the ANSI escape sequences are generally supported by the shell. The rise of GUI applications has reduced the use of escape sequences, yet the ability to provide full-screen, text-based applications is still available.

[edit]

Control sequence

[edit]

A control sequence is a sequence of characters that changes the state of a computer peripheral instead of conveying the normal information that the characters represent. In an ANSI escape sequence, the escape sequence prefix, called control sequence introducer, can be either ASCII ESC (decimal 27) followed by [ or CSI (decimal 155). Notable systems that did not use an escape character for control sequences include:

  • The Hayes command set defines a control sequence, +++ that is modal; switching from command to online mode. To ensure that the sequence is interpreted as a control sequence instead of embedded in content, the sender stops communication for one second before and after sending +++. When the modem detects condition, it switches from normal mode (sending characters to the phone) to a command mode in which the data is interpreted a command. Sending the O command switches back to the normal mode.[12][13][14][15]
  • Data General terminal control sequences,[16][17][18] but they often were still called escape sequences, and the very common use of "escaping" special characters in programming languages and command-line parameters today often use the "backslash" character to begin the sequence.

Escape sequences in communications are commonly used when a computer and a peripheral have only a single channel through which to send information back and forth (so escape sequences are an example of in-band signaling).[19][20] They were common when most dumb terminals used ASCII with 7 data bits for communication, and sometimes would be used to switch to a different character set for "foreign" or graphics characters that would otherwise been restricted by the 128 codes available in 7 data bits. Even relatively "dumb" terminals responded to some escape sequences, including the original mechanical Teletype printers (on which "glass Teletypes" or VDUs were based) responded to characters 27 and 31 to alternate between letters and figures modes.

Esc key

[edit]

Many computer keyboards have an Esc key (where Esc is short for escape) even though it is generally not used for entering an escape sequence. The vi text editor uses the key to exit from input mode.[21] Some application use the key to cancel an operation or navigate up a level of a nested context.[22]

See also

[edit]

References

[edit]
  1. ^ "Escape Sequence (General Concept)".
  2. ^ "Characters". The Java Tutorials.
  3. ^ "What is ASCII? The Economist explains". The Economist. 2025-08-06.
  4. ^ "Baudot and CCITT code". The Baudot code, invented in 1870 and patented in 1874 by J. Baudot is […]
  5. ^ "Guide to the use of Character Sets in Europe". elements C0 and C1 of control characters […] a 5-bit code patented by Jean-Maurice-Emile Baudot (1845-1903) in 1874
  6. ^ a b "The Windows NT Command Shell". 20 February 2014.
  7. ^ a b "Apostrophe Editing ('aaa') (FORTRAN 77 Language Reference)". Within the field, two consecutive apostrophes […]
  8. ^ "Escape Sequences". 3 August 2021. Character combinations consisting of a backslash \ followed by a letter or by a combination of digits are called escape sequences.
  9. ^ "Escape sequences". IBM.
  10. ^ "ISO/IEC 9899:201x Committee Draft N1570" (PDF). 5.1.1.2 Translation phases, 2.: Each instance of a backslash character (\) immediately followed by a new-line character is deleted, splicing physical source lines to form logical source lines. [...]
  11. ^ "17. Understanding ANSI.SYS - Special Edition Using MS-DOS? 6.22, Third Edition [Book]". www.oreilly.com.
  12. ^ "Basic Hayes AT Command Set". 2025-08-06. +++ - "Escape Sequence" - This command initiates an escape sequence to return the modem to the on-line command mode
  13. ^ "Modem Programming Basics". When a modem is in command mode, the modem can accept commands from you
  14. ^ "Chapter 5 – AT Commands" (PDF).
  15. ^ "AT Command Set and Register Summary for Analog Modem Modules". Cisco.
  16. ^ "Data General terminals: discussion of". FTP server (FTP).[dead ftp link] (To view documents see Help:FTP)
  17. ^ "What's a Terminal?". www.kermitproject.org.
  18. ^ "Data General DG210 DG211 Terminal Emulation Software".
  19. ^ "Escape sequence".
  20. ^ "Terminals & Printers Handbook Glossary". vt100.net.
  21. ^ "Twelve Useful "vi" Commands". vi commands […] Pressing the Esc (Escape) key is how you […]
  22. ^ "Five Unexpected Uses for the Esc Key". PCworld. 2025-08-06.
鸡眼膏为什么越贴越疼 苯佐卡因是什么药 宛如是什么意思 什么相接 蛋白质是什么
湿热吃什么食物好 阎王是什么意思 子痫是什么病 治疗褥疮用什么药 水仙茶适合什么人喝
yolo是什么 不假思索的假是什么意思 灵芝孢子粉有什么用 天铁是什么 氯雷他定是什么药
肛门湿疹用什么药膏最有效 脖子黑是什么原因 ku是什么单位 脚肿是什么原因造成的 牙周炎吃什么药好
人流复查做什么检查hcv9jop0ns7r.cn 手脚热吃什么药hcv8jop6ns0r.cn 10月5号什么星座hcv8jop6ns5r.cn 后遗症是什么意思hcv8jop8ns8r.cn ct什么意思hcv8jop1ns8r.cn
八戒是什么意思hcv7jop9ns2r.cn 孕期长痘痘是什么原因hcv9jop5ns7r.cn 什么是断桥铝xianpinbao.com 棠字五行属什么hcv7jop6ns4r.cn 假性近视是什么意思hcv8jop5ns9r.cn
冲喜什么意思dayuxmw.com 善存什么时间吃比较好hcv8jop6ns1r.cn 自来熟是什么意思hcv8jop6ns5r.cn 效应是什么意思hcv9jop3ns2r.cn 墨菲定律讲的是什么hcv7jop6ns3r.cn
护士学什么专业hcv8jop3ns3r.cn 五行是什么意思hcv8jop0ns5r.cn 新疆是什么族hcv8jop7ns2r.cn 为什么近亲不能结婚hcv9jop3ns6r.cn 三八妇女节是什么生肖hcv8jop4ns7r.cn
百度