when emacs -nw opens a file from term (gnome-terminal, alacritty), there are extra chars like [I
If I move the mouse in and out of the terminal, we get more of these [I[I[I
(the brackets can be paired when using smartparens)
I resolved this to some extent with -Q and by removing for smartparens
(sp-pair "[" "]" :wrap "M-[")
from reading a post where someone had discovered that was the culprit.
however, running nnn filemanager, sometimes requires moving to the $EDITOR which is emacs -nw and neither of the above has any effect and I'm getting at the beginning.:
If I set EDITOR=mg, it opens cleanly with no issues.
I would like to know:
- what is causing this behavior
- what those chars are (some ascii codes?)
- how to stop it