Sebastian Schmitt <[email protected]> writes:

> Hi Michael!

Hi Sebastian,
>> Yes, but your prompt uses escape sequences. It looks like:
>> 
>> ^[[0m^[[m^[[m^[[J[sschmitt@higgs]: ~ $ ^[[K
>> 
>> And the escape sequences contain literal "[" characters. When Tramp
>> allows "[...]" style prompts, it is confused by those "[" characters. So
>> you shall convince the remote prompt to get rid of it.
>
> Probably it's obvious to everybody but not me. Where does '[%n@%m]: %~ $
> ' contain escape sequences? Does zsh silently add them at a later step?

Yes, the escape sequences are activated by your shell. And now that you
mention zsh: the Tramp manual recommends to disable the zsh line editor.
See (info "(tramp)Frequently Asked Questions")

> Best,
>
> Sebastian

Best regards, Michael.

_______________________________________________
Tramp-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to