What is a Escape Code
An escape code is normally a sequence of characters found inside a string that tells the computer or device to perform some action.
The escape code sequence would normally start with an Escape character followed by a number of characters that instruct the device to carry out the required function.
Escape codes vary depending on the programming language and communications protocols in use.
The earliest examples of escape codes or control sequences would be the use of the code sequences in terminals (before Windows) that would move the cursor around the screen to a particular location as defined in the escape sequence.
DOS also supported the use of escape codes to perform various screen functions. These would be for early character based displays.