I’m trying out the coffee script repl inside Emacs (under ArchLinux) and I’m seeing these escape characters surrounding the prompt:
[1Gcoffee> [0K[9G
These shouldn’t be colors as I already enabled the ansi-color-for-comint-mode. So does anyone recognize these?
P.S.: Funny thing is I don’t have this issue under my Emacs+Cygwin setup!
I don’t know where they’re coming from (something to do with your shell prompt, obviously, but it’s hard to say more than that).
I read them as:
[1G– Move to column 1 (Cursor Character Absolute)[0K– Erase to right[9G– Move to column 9It looks like an attempt by the shell to ensure that the prompt is at the far left of an empty line. Not sure what shell you have, but zsh does something similar when the
PROMPT_SPoption is enabled. I don’t think it uses the above sequences, though.Many, many, control sequences can be found here. Note that the sequence “ESC
[” is interpreted as a “Control Sequence Introducer” (CSI) and is shown as that on that page.