.. _invalid-character-esc:

invalid-character-esc / E2513
=============================

**Message emitted:**

``Invalid unescaped character esc, use "\x1B" instead.``

**Description:**

*Commonly initiates escape codes which allow arbitrary control of the terminal.*

**Problematic code:**

.. literalinclude:: /data/messages/i/invalid-character-esc/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/i/invalid-character-esc/good.py
   :language: python





Created by the `unicode_checker <https://github.com/PyCQA/pylint/blob/main/pylint/checkers/unicode.py>`__ checker.