-
-
Notifications
You must be signed in to change notification settings - Fork 584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arrow keys not working in python shell #2065
Comments
i use |
maybe it's related to the package prompt-toolkit required by ipython. |
@XinliYu Is it working outside of cygwin? |
Interestingly enough, removing This is with ConEmu 200713 and 3.1.6(0.340/5/3) 2020-07-09 08:20 x86_64 Cygwin on my end. |
From topic-starter screenshot - Python does not look like cygwin's version. |
@Maximus5 Good catch, that's the issue - the non-cygwin one:
has issues with arrow keys, the cygwin one:
has no issues with arrow keys. So from ConEmu standpoint expected behavior. Damn, I envy you for being so patient with 1000s of variations of the same issue :) |
The issue is the ESC character being eaten up before arriving to the application. I can reproduce with Git Bash 2.29.2 and Turbo Vision: Note that Turbo Vision uses the Win32 Console API, which is supported by Git Bash since 2.27.0. I can't reproduce this issue with other Git Bash applications such as Nano. |
Than use Win32 Console API, that's it. |
Remove connector from your task |
Hi Maksim,
I already know that bash is an interpreter and not a terminal. From the Git for Windows changelog:
So according to the Git for Windows developers, Git Bash != bash. I am not to be blamed for this confusing terminology. It's Git Bash that makes that application work. When disabling the Windows-native pseudo console option in Git Bash, Turbo Vision can't start at all. The same happens when running Git Bash from outside ConEmu. But only when running Git Bash in ConEmu, ESC characters are missing. So even if running a Win32 Console API application using the connector is pointless, there seems to be something wrong. Now, I do not use ConEmu regularly. Another user reported that Turbo Vision was not working for them when using Git Bash within ConEmu, so I tested it and found this issue. I would like to guide them to use Git Bash's bash ( Thank you very much. |
Terminology, terminology... "Git Bash" could be an executable starting mintty.exe or the bash.exe included in Git-for-Windows distro. First of all, to compare, we need to run TV from mintty.exe. That is weird, but due to changelog it should work. Second, when connector is started, ConEmu sends esc-sequences same way, regardless the executable in view. You can see on screenshot the conemu-msys2-64.exe (the connector). Do arrow keys working in bash prompt? I bet they do. There is an article about Tasks. https://conemu.github.io/en/Tasks.html Well, I have not thoroughly checked the behavior of git bash from latest versions started without connector. But there were definitely bugs in the past and at least some of them persists. |
BTW, ConEmu implements real switch to Win32 console from posix emulation. I have not checked it with latest git bash but it worked in the past. |
I can't get this to work.
This works as expected, both mouse and keyboard: Thank you. |
I use cygwin + python 3.7.5, all latest version.
The cygwin task is
The arrow keys works in the terminal and vim, but not the Python or IPYTHON shell,
The left key is mapped to '[D', the right key is mapped to '[C', up key mapped to '[A', down key mapped to '[B'.
The python shell in Cygwin's buildin terminal is OK.
Also tried
-new_console:p1
and-new_console:p5
, both did not work.The text was updated successfully, but these errors were encountered: