bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#11065: 24.0.94; Problem with tramp & plink


From: Michael Albinus
Subject: bug#11065: 24.0.94; Problem with tramp & plink
Date: Thu, 22 Mar 2012 17:28:42 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux)

Dani Moncayo <address@hidden> writes:

> Hello,

Hi Dani,

> From a cmd.exe console, I can login to a remote host using the command
> "plink my_host" and giving my credentials.  However, the remote host
> returns strange characters just before the the prompt text:
>
>   [Copyright messages and stuff...]
>
>   You have mail.
>           ←H        ←H        ←H        ←H        ←H        ←H
> ←H        ←H
>   [/home/my_user]

The default shell prompt pattern in Tramp does not recognizes "[]"
templates. You might change it by

(setq tramp-shell-prompt-pattern
      "\\(?:^\\|\\)[^#$%>\n]*#?[]#$%>] *\\(\\[[0-9;]*[a-zA-Z] *\\)*"

(Beware the ^M and ^[ characters)

> TIA.

Best regards, Michael.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]