696 |
:type 'regexp) |
:type 'regexp) |
697 |
|
|
698 |
(defcustom tramp-shell-prompt-pattern |
(defcustom tramp-shell-prompt-pattern |
699 |
"^[^#$%>\n]*[#$%>] *" |
"^[^#$%>\n]*[#$%>] *\\(\e\\[[0-9;]*[a-zA-Z]\\)?" |
700 |
"Regexp to match prompts from remote shell. |
"Regexp to match prompts from remote shell. |
701 |
Normally, Tramp expects you to configure `shell-prompt-pattern' |
Normally, Tramp expects you to configure `shell-prompt-pattern' |
702 |
correctly, but sometimes it happens that you are connecting to a |
correctly, but sometimes it happens that you are connecting to a |
703 |
remote host which sends a different kind of shell prompt. Therefore, |
remote host which sends a different kind of shell prompt. Therefore, |
704 |
Tramp recognizes things matched by `shell-prompt-pattern' as prompt, |
Tramp recognizes things matched by `shell-prompt-pattern' as prompt, |
705 |
and also things matched by this variable. The default value of this |
and also things matched by this variable. The default value of this |
706 |
variable is the same as the default value of `shell-prompt-pattern', |
variable is similar to the default value of `shell-prompt-pattern', |
707 |
which should work well in many cases." |
which should work well in many cases." |
708 |
:group 'tramp |
:group 'tramp |
709 |
:type 'regexp) |
:type 'regexp) |