Please enable JavaScript to view this site.

Take Command / TCC Help v. 28

Navigation: TCC > Command Line

Escape Character

Scroll Prev Top Next More

TCC recognizes a user-definable escape character. This character gives the character that follows a special meaning; it has a different purpose than the ASCII ESC that is often used in ANSI X3.64 and printer control sequences.


The default escape character is a caret (^, ASCII: 94).


Ten special characters are recognized when they are preceded by the escape character. The combination of the escape character and one of these characters is translated to a single character, as shown below. The special characters which can follow the escape character are:


Codes for Escape Characters


ccomma ,
ethe ASCII ESC character (code 27)
fform feed
kback quote `
nline feed
qdouble quote "
rcarriage return
thorizontal tab character


If you follow the escape character with any other character, the escape character is removed and the second character is copied directly into the command line. This allows you to suppress the normal meaning of special characters (such as ? * / \ | " ` > < and &). For example, to display a message containing a > symbol, which normally indicates redirection:


echo 2 is ^> 4


The escape character has an additional use when it is the last character on any line of  a batch file. TCC recognizes this use of the escape character to signal line continuation:  it removes the escape character and appends the next line to the current line before executing it.


WARNING: Escape characters are considered to be normal characters on the right side of a pipe.


Note: The term escape character has two additional usages not related to the above description, as detailed in the description of the PROMPT command and in ASCII, Key Codes and Key Names.