-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Shell has faulty insertion behavior #8061
Comments
Same (for a long time). |
Same problem |
#3125 Inconsistencies in ansi-terminal |
I believe this behaviour (and that in #3125) is due to the way the terminal process In the default term-char-mode, all characters in insert-state are sent to the The "proper" way to use your Emacs bindings to edit text in term-mode is to One workaround to get more familiar term bindings is to go into emacs-state, Disclaimer: I'm not using spacemacs, just evil. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
Description
When the default shell is something other than shell, the insertion behavior in the middle of a line is faulty. The insertion jumps immediately to the end of the line. See the following URL for a better visual description of the problem.
http://stackoverflow.com/questions/40447007/spacemacs-multi-term-command-cannot-insert-text-in-existing-text
Note: it happens in the following shells: term, ansi-term and multi-term.
Reproduction guide
Start emacs
Make sure that the default shell is term, ansi-term, or multi term.
Open a terminal using SPACE '
Type a word at the prompt. Escape. Go backwards a few steps using h key. Type i for insertion mode. Type a letter.
-Observed behaviour:
Letter will be inserted at end of line.
Expected behaviour:
Letter will be inserted in the middle of the word.
Note: if you maneuver backwards with the arrow key instead of escaping to command mode, you can insert into the middle of the word. Also, if you move backwards with the arrow key while in insertion mode. Then escape to command mode. Move backwards with h key. Then enter insertion mode and type a letter, the letter will be inserted where you escape to command mode. It's as if the shell isn't being updated with the current cursor position when in command mode.
System Info 💻
The text was updated successfully, but these errors were encountered: