When using a custom prompt definition - in my case echo "PS1=\"\e[1;32m\u@tuto\e[0m:\e[1;34m\w\e[0m\$ \"" >> /root/.bashrc, node-pty does not seem to understand it and some weird things happen on the UI. The first line of the terminal is reduced and gets rewritten when it's exceeded. Stranger things happen when trying to erase text in the terminal. I'm using xterm.js with sockets.
Environment details
Issue description
When using a custom prompt definition - in my case
echo "PS1=\"\e[1;32m\u@tuto\e[0m:\e[1;34m\w\e[0m\$ \"" >> /root/.bashrc
, node-pty does not seem to understand it and some weird things happen on the UI. The first line of the terminal is reduced and gets rewritten when it's exceeded. Stranger things happen when trying to erase text in the terminal. I'm using xterm.js with sockets.