sedwards2009 / extraterm

The swiss army chainsaw of terminal emulators
https://extraterm.org
MIT License
2.49k stars 115 forks source link

Shell integration to remote shells breaks command prompt and window names #354

Open WarDrake opened 2 years ago

WarDrake commented 2 years ago

I do most of my work on remote shells, and I connect through ssh, when using Shell integration locally, it works flawlessly, but when I execute it on a remote shell it breaks the command prompt and the tab title.

image

The title and command prompt aren't that big of a deal, however, when I need to sometimes edit a command the command is shifted from what it to what it looks like.

so if I edit the beginning of the third word of the command, it looks right, but I really edited a couple characters off from where it looks like I did because the command prompt looks different but it is the correct length internally.

sedwards2009 commented 2 years ago

Which shell are you using remotely? and is it using the correct integration script for that particular shell?

WarDrake commented 2 years ago

I'm using a Bash shell in Debian 10 locally (wsl2) and connecting to a bash shell on a CentOS7 server, and yes, I'm sure I'm using the correct integration.

it's loaded automatically on login using .bashrc wit this command source ~/extraterm-commands-latest/setup_extraterm_bash.sh

My local installation is done on windows not the wsl environment.