Skip to content

How to add escape (Esc) ASCII character to a text script file?

The following example is for a script created to run some commands (in this case: “MULTIPLE” and “POINT” command for Autodesk AutoCAD) to create mulitple coordinate points. The script should end with an Escape or Cancel input. To do so, we insert the ASCII code of the Esc character at the end of the file.

Notepad++ text file showing Endline characters CRLF and Escape char ESC

Here is demonstration to create this in an advanced Text Editor like Notepad++
This is need to inser the unicode symbol into the text:

GIF animation demo of creating ESC escape ASCII character inside a textscript file

Keyboard shortcut

Hold the left-Alt-key while typing the numbers 027
Alt + 0 2 7

Here is a reference of the ASCII Unicode characters:

Leave a Reply

Your email address will not be published. Required fields are marked *