Difference between revisions of "Character escape codes"
From Zenitel Wiki
Line 44: | Line 44: | ||
|- | |- | ||
| align=center| || align=center|\l || || 80 || Extended NUL ('\x80') | | align=center| || align=center|\l || || 80 || Extended NUL ('\x80') | ||
+ | |- | ||
+ | | align=center| || align=center|\! || align=center| || || Comment / ignore rest of string | ||
|- | |- | ||
| align=center| || align=center|\xhh || align=center| || || 'hh' is the ASCII character code as 2 hex digits. Note that you must use 2 digits. | | align=center| || align=center|\xhh || align=center| || || 'hh' is the ASCII character code as 2 hex digits. Note that you must use 2 digits. | ||
Line 53: | Line 55: | ||
<br> | <br> | ||
− | By using the escape sequence '\xhh' all sorts of ASCII characters can be | + | By using the escape sequence '\xhh' all sorts of ASCII characters can be generated. |
<br><br> | <br><br> | ||
− | + | ||
− | |||
− | |||
− | |||
[[Category:Event Handler]] | [[Category:Event Handler]] |
Revision as of 13:13, 21 October 2008
Escape sequences use an escape character to change the meaning of the characters which follow it. In the Event Handler backslash (\) is used as escape character. Escape sequences might be used in the EDO command to generate non-printable ASCII characters.
Some frequently used escape sequences:
\r = Carriage Return \n = Line Feed \t = Tab \xhh = hh is any ASCII value in HEX
Escape sequences:
Char | Escape sequence | Result | Hex | Description |
---|---|---|---|---|
, | \, | , | 2C | Comma |
( | \( | ( | 28 | Opening parenthese |
) | \) | ) | 29 | Closing parenthese |
" | \" | " | 22 | Double quote |
; | \; | ; | 3B | Semicolon |
\ | \\ | \ | 5C | Backslash |
% | \% | % | 25 | Percent |
TAB | \t | TAB | 09 | ASCII TAB (Horisontal tab) |
SP | \s | SP | 20 | Space |
CR | \r | CR | 0D | Carriage return |
LF | \n | LF | 0A | Line feed |
BEL | \a | BEL | 07 | Bell (Alert) |
BS | \b | BS | 08 | Backspace |
NUL | \0 | NUL | 00 | ASCII NUL |
\l | 80 | Extended NUL ('\x80') | ||
\! | Comment / ignore rest of string | |||
\xhh | 'hh' is the ASCII character code as 2 hex digits. Note that you must use 2 digits. | |||
\#hh | 'hh' is the ASCII character code as 2 hex digits. Note that you must use 2 digits. |
By using the escape sequence '\xhh' all sorts of ASCII characters can be generated.