prompt-toolkit / python-prompt-toolkit

Library for building powerful interactive command line applications in Python
https://python-prompt-toolkit.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
9.37k stars 716 forks source link

`esc+enter` no long works in cmder #839

Open randy3k opened 5 years ago

randy3k commented 5 years ago

I could no longer interact with ipython 7.0 / prompt_toolkit 2 in cmder by sending <esc>+<enter>

import subprocess

subprocess.check_output('C:\\tools\\Cmder\\vendor\\conemu-maximus5\\ConEmu\\ConEmuC64.exe -GuiMacro:0 Keys("\\e", "Return")')
screen shot 2019-02-12 at 9 25 26 pm

The above code will now leave ^[ in the prompt and proceed to the next line instead of forcing to accept a multiline input.

Note that the above code worked fine in ipython 6 / prompt_tookit 1

screen shot 2019-02-12 at 9 23 29 pm
jonathanslenders commented 5 years ago

Hi Randy, This is weird. I tried installing the latest Cmder and IPython (from pip), and this seems to work fine without any issues. Are you sure it's not a configuration issue? What is the cmder version?

randy3k commented 5 years ago

It works if I insert a little delay between esc and enter. However, it happens if I send the keys via a program (no delay between the keys).

I am on mobile now, not sure about the cmder version, it was a fresh installation from chocolaty a few days ago.