Embarrassing that I can't find out the answer to this one... why does hitting the ENTER key cause my zsh to display the letter M at the prompt?
A wild guess: there are some issues with the hostname: https://bugs.archlinux.org/task/31765
Possibly related, is that Ctrl-M is a newline character. Something might be screwing up the state of your terminal.
@karol - Thanks for the suggestion; no initscripts installed... I finally turned to the darkside
@ataraxia - Not sure... if I totally remove the scriptlets in ~/.zsh from getting sources I do not have this problem so I'm thinking that it is SOMETHING in one of them. If I remove them all, then source ~/.zshrc I don't have the problem. If I add them back one-by-one and resource ~/.zshrc, the problem seems to return somewhat sporadically. Which confuses the piss out of me. This is why I am appealing to higher powers
Please keep the suggestions coming.
Last edited by graysky (2012-10-05 08:11:47)
The issue may be related to your stty settings. Try mapping carriage returns to newlines with the following command:
If that works, add it to your .zshrc
You can check whether you have this mapping set already by running
If you see the option, "-icrnl", then the mapping is currently disabled. If it is not prefixed with "-" (i.e. "icrnl") then the option is currently enabled. Also be mindful that you do not map newlines to carriage returns with the option "inlcr".
For more info:
I know the topic's old, but was unanswered.
Last edited by deltaecho (2014-06-15 22:09:31)
I'm guessing graysky has long since solved this.
https://wiki.archlinux.org/index.php/Fo … Bumping.27