I am trying to use the PyCharm console with pdb, IPython, ipdb and other software, relying on readline . Console software uses this library to provide command history and autocomplete. When you press the up arrow, you get the previous command.
However, for some reason, the PyCharm console does not work as expected, and pressing the arrow actually moves the cursor to the previous line instead of correctly executing the last action of the command.

Is there a way to configure the PyCharm console to behave like the right terminal and does it work correctly?