microsoft / node-pty

Fork pseudoterminals in Node.JS
Other
1.42k stars 233 forks source link

Prompt customization doesn't seem to be supported #619

Closed dj-256 closed 11 months ago

dj-256 commented 11 months ago

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.