From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Tramp over su, with odd zsh prompt
Date: Mon, 29 May 2006 19:15:27 -0400 [thread overview]
Message-ID: <jwvmzd0ctlm.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <877j44tx2u.fsf@gmx.de> (Michael Albinus's message of "Mon, 29 May 2006 22:06:33 +0200")
>> I recently tried to use Tramp to access a file via `su' and bumped into the
>> following problem: the prompt (resulting from a very plain default setting
>> PS1="%m%# ") looks like
>>
>> %<78 SPC>^M^Malfajor%
>>
>> where alfajor is the machine name (an argentine pastry).
>>
>> So it seems that although Tramp sets TERM=dump, the `zsh' executable
>> (version 4.3.2, from Debian testing) uses funny carriaqe-return trickery and
>> for apparently no good reason.
>>
>> Has anybody seen this before? Should I just set
>> tramp-shell-prompt-pattern accordingly? Have you heard of such
>> behavior already (and maybe some way to get zsh to behave a bit better)?
> When zsh is in interactive mode, it uses its internal zsh line editor
> (zle). This provides left and right prompts; therefore the spaces.
> Disabling zle for the Tramp case is sufficient.
> The following lines in .zshrc work for me:
> # Let Tramp come in
> [ $TERM = "dumb" ] && unsetopt zle
Yuck!
> PS: "for apparently no good reason" depends. Play with promptinit /
> prompt themes, you'll see lot of gimmicks.
Still no good reasons since I don't use those extra features. But I guess
it makes the code simpler.
> PPS: I'll give it a short note in the Tramp manual.
Could Tramp reasonably look for a prompt after ^M rather than only after ^J ?
Stefan
next prev parent reply other threads:[~2006-05-29 23:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-29 0:56 Tramp over su, with odd zsh prompt Stefan Monnier
2006-05-29 20:06 ` Michael Albinus
2006-05-29 23:15 ` Stefan Monnier [this message]
2006-05-30 16:16 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvmzd0ctlm.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.