.. _invalid-character-carriage-return:

invalid-character-carriage-return / E2511
=========================================

**Message emitted:**

Invalid unescaped character carriage-return, use "\r" instead.

**Description:**

*Moves the cursor to the start of line, subsequent characters overwrite the start of the line.*


**Correct code:**

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

**Additional details:**

You can help us make the doc better `by contributing <https://github.com/PyCQA/pylint/issues/5953>`_ !


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