Whenever I start the terminal emacs and there is typeahead (i.e., I start typing before emacs starts), the escape code 0;95;0c gets inserted into the buffer. For example, if I run
sleep 3; emacs -Q test
and type qwerty while the sleep is happening (test is a new file), the buffer will open with
qwerty0;95;0c
The *Messages* buffer says
For information about GNU Emacs and the GNU system, type C-h C-a.
(New file)
M-[ > is undefined
Making completion list...
My $TERM is xterm-256color and I am using iTerm2 on OS X 10.10.5.
EDIT: If I use Terminal.app instead of iTerm2, I get 1;2c in place of 0;95;0c and it opens a help buffer with "Global bindings starting with M-[". Not sure what key sequence activates that.
How can I determine what this escape code is and make it not get inserted into my emacs buffers?
$TERM:itermfor iTerm, andnstermfor Terminal.app. – angus Sep 29 '15 at 00:09iterma realTERM? When I do that emacs won't start (Cannot open terminfo database file). – asmeurer Sep 29 '15 at 16:42iTerm.app; it's an alias. Or look into/usr/share/terminfo/i/(or the MacOSX equivalent) and see if there is anything adequate there. – angus Sep 29 '15 at 20:11