When building strings in TERM Script Language or TinyTERM’s CScript, you may need to enter non-printable characters. Also, the \ and @ characters are reserved for special functions normally, but you may need them as literals instead. In fact, the backslash character \ allows you to enter the non-standard characters like so:
^ |
control character; e.g., ^X for Ctrl-X |
\b |
backspace (hex 08) |
\e |
escape (hex 1b) |
\f |
form feed (hex 0c) |
\n |
line feed (hex 0a) |
\r |
carriage return (hex 0d) |
\t |
horizontal tab (hex 09) |
\v |
vertical tab (hex 0b) |
\@ |
at sign (hex 40) |
\^ |
carat (hex 5e) |
\ |
backslash (hex 5c) |
“ |
double quote (hex 22) |
‘ |
single quote (hex 27) |
\x |
hexadecimal number follows; e.g., \x1b for escape |
\0 thru \7 |
octal constant follows; e.g., \024 for Ctrl-T |
All the above may be used together to specify complex strings. In addition, you can use the / character to separate directories in any version of TERM or TinyTERM; e.g.,
setvar sample_path “C:/Temp”
CR 710
This entry was posted
on Monday, March 12th, 2007 at 2:41 pm and is filed under Scripting.
You can follow any responses to this entry through the RSS 2.0 feed.
Both comments and pings are currently closed.