I don’t know where they come from (to do something with the shell tip, obviously, but it's hard to say more).
I read them as:
- ESC
[1G - Move to column 1 (Absolute cursor character) - ESC
[0K - Erase Right - ESC
[9G - go to column 9
It looks like a shell attempt to make sure the invitation is in the far left corner of the empty line. Not sure which shell you have, but zsh does something similar when the PROMPT_SP option is PROMPT_SP . I do not think it uses the above sequences.
Here you can find many, many, control sequences. Please note that the sequence “ ESC [ ” is interpreted as “Control Sequence Introducer” (CSI) and is displayed as such on this page.
brontitall
source share