~~ 2021-08-25T14:53:33+02:00 ● expect expect1.1> exp_internal 1 expect1.2> spawn zsh spawn zsh parent: waiting for sync byte parent: telling child to go ahead parent: now unsynchronized from child spawn: returns {2470866} 2470866 expect1.3> interact tty_raw_noecho: was raw = 0 echo = 1 spawn id exp7 sent ZSHRC ● https://gist.github.com/natanaeljr/8b26dba7b876e2c006bfa28a4147b407 #define ESC_STYLE_RESET ESC_CSI "0m" /*!< Reset text, font and color attributes */ #define ESC_TEXT_BOLD ESC_CSI "1m" #define ESC_COLOR_REVERSE ESC_CSI "7m" #define ESC_COLOR_REVERSE_OFF ESC_CSI "27m" #define ESC_TEXT_UNDERLINE_OFF ESC_CSI "24m" #define ESC_FGCOLOR_GREEN ESC_CSI "32m" #define ESC_FGCOLOR_DEFAULT ESC_CSI "39m" https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797 ESC[J clears the screen (probably means ESC[0J clears from cursor until end of screen) ESC[K clears the current line (probably means ESC[0K clears from cursor to end of line) https://unicode-table.com/en/25CF/ - Black Circle and finally - http://www.xfree86.org/current/ctlseqs.html#Bracketed%20Paste%20Mode When bracketed paste mode is set, pasted text is bracketed with control sequences so that the program can differentiate pasted text from typed-in text. When bracketed paste mode is set, the program will receive: ESC [ 200 ~, followed by the pasted text, followed by ESC [ 201 ~. CSI ? P m h DEC Private Mode Set (DECSET) P s = 2 0 0 4 → Set bracketed paste mode. (same page) so \e[?2004h is setting the bracketed paste mode (probably zsh handles this)