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
Cannot move the cursor with arrow keys #17
Comments
I've been able to confirm the behavior with Vim 7.4.273. Using xterm, I've been able to determine that the root cause is the terminal switching away from the alternate screen (which disables Application Cursor Keys (and Application Keypad)) and not switching back after the password prompt has completed.
Now to determine if this is a Vim bug or if it's something related to how the plugin loads the encrypted file. |
Actually, this looks like a bug in pinentry-curses. That doesn't seem to have been forwarded upstream. I'll see if I can get them to take a look at it. I have a possible workaround that I can commit if that doesn't go anywhere soon. |
I'm not too keen on the workaround I had, and in talking to some other people more familiar with terminal programming, they seem to think this is Vim's fault for not restoring typical terminal settings before running the external command. I'll poke around with that idea some. |
Just for info: On Linux Mint 17 (Ubuntu 14.04), the pb seems to be fixed:
On CentOS 7, the pb is still here:
|
Is there any difference in Vim version on those systems? |
On Linux Mint 17 (Ubuntu 14.04):
On CentOS 7:
|
What about |
I don't understand what is the Anyway, I've tried to put it in my
or to type it after the GPG passphrase prompt, it doesn't fix the bug on CentOS7 (I didn't test on Mint, since the issue seems to be fixed). |
Just run the command |
On Linux Mint (in graphic mode, thus graphical passphrase prompt):
In full console mode (Ctrl+Alt+F1), the
On CentOS 7 (connection to the VM via SSH):
|
Gvim will never have the problem being discussed here because it's purely a terminal issue.
Do either of these work properly? |
On Linux Mint 17, in full console mode (Ctrl+Alt+F1), the
On Linux Mint 17, through an SSH connection without X11 forwarding (
On CentOS 7, in full console mode, the
I can move the cursor, but I can't save. When I enter It is precisely when I try to save |
Just ran into this as well. :( My vim starts with term=screen256-color when opening both normal files and encrypted files. With encrypted files, when I set term=xterm, my arrow keys work properly. t_ti=^[[?1049h VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 3 2013 16:53:31) |
If I had a fix, I would have committed it. :) It looks like the simplest thing may be to just commit the workaround for now and try to figure out the bigger problem later. |
For reference: |
I cannot move the cursor with arrow keys after opening a .gpg file.
How to reproduce :
Enter passphrase twice. Then :
It asks for the passphrase, enter it. Once the file is decrypted in vim, the arrow keys don't move the cursor anymore. If you click on the left arrow key, you will get the error message :
Environment :
If I set :
the arrow keys work again. Maybe it comes from the passphrase popup in the terminal, because I've also tried in a full MATE GUI environement, and the popup asking for passphrase is a MATE graphical one (not in the terminal like in CentOS) and there is no issue with arrow keys afterwards.
Any clue ?
The text was updated successfully, but these errors were encountered: