David Reitter <[EMAIL PROTECTED]> writes:

> Tramp hangs (and eventually times out) when connecting to one of our
> machines. It looks like it cannot parse the shell prompt. My settings
> seem reasonable - I'm not sure if PS1 should be set to something else
> depending on the terminal used to log in.
>
>
> # set prompt: [EMAIL PROTECTED]:/directory $ ''
> export PS1="[EMAIL PROTECTED]:\W] "
> case `id -u` in
>        0) export PS1="${PS1}#";;
>        *) export PS1="${PS1}";;
> esac
>
> export PS1="\e[30;47m ${PS1}\e[0m "
>
>
> Users can set their prompts to whatever they wish. So is its form
> documented so that tools like Tramp can safely rely on it?

See the Tramp manual, section "Remote shell setup". There the variable
`tramp-shell-prompt-pattern“ is discussed, which must be customised to
your prompt.

It is always a good idea to avoid escape sequences in the prompt.

Best regards, Michael.



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

Reply via email to