一种消息,它报告在完成请求的功能前,引起程序终止的情况。...escape sequence(换码序列)...在 C 语言中,为由换码字符后跟一个或多个字符而构成的序列,它指示跟随的字符由不同的码解释或按照不同编码字符集解释。
字符和字符串常数支持标准换码序列。
Character and string constants support the standard escape sequences.
这通过使用“{%…%}”语法来封装所有换码序列来完成。
This is done by using the "{%... %}" syntax to enclose any escape sequences. Let's illustrate all of this with an example.
通常的换码序列是 "ESC-[31m",其中 "1" 指定前景颜色,可以是任何从 0(缺省)到 9 的任何数字。
The usual escape sequence is "ESC-[31m", where the "1" specifies the foreground color, and can be any digit from 0 (default) to 9.
应用推荐