all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: lyallp <Lyall.Pearce@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Help with Emacs 22.2.1 using TRAMP and PuTTY/plink
Date: Sun, 04 May 2008 23:40:06 +0200	[thread overview]
Message-ID: <87bq3l92a1.fsf@gmx.de> (raw)
In-Reply-To: <e00cee5b-7692-43da-8874-6af3814b1c3b@k1g2000prb.googlegroups.com> (lyallp's message of "Sun, 4 May 2008 04:57:00 -0700 (PDT)")

lyallp <Lyall.Pearce@gmail.com> writes:

> Thanks for replying Michael.

Hi Lyall.

> I don't consider myself a noob at bash, but my problem is that I do
> not know how to determine what the terminal is.
> I can determine if it's an interactive login, but that does not help
> me when it comes to TRAMP.
> How do I differentiate me, from TRAMP?

The default test is [ $TERM = "dumb" ]

> Another part of my problem is that the server in question, on which I
> am not an admin, sets TERM=vt100 in /etc/profile, unconditionally.

That might be a problem, indeed. But first let's test whether setting a
simple prompt helps you.

> My PS1 string contains an escape sequence which updates my XTERM
> window title with my "Host - User - pwd".
>
> I looked in TRAMP and it's simply looking for a regexp (contained in
> tramp-shell-prompt-pattern), which includes, amongst other junk, a
> newline followed by $ space. (which my PS1 does have - I have my
> username/host/pwd followed by a newline, then $ space - rather than
> having the $ space at the end of a potentially long prompt string).
>
> Even if it did think my prompt was earlier in the string, it does not
> matter, so long as it proceeds, as almost the first thing TRAMP does
> is start up /bin/sh with a prompt defined by itself as "$ "

Not really. Tramp, for example, sends "unset HISTORY", and it sees your
prompt with the escape sequence. So please, as a first test, discard any
special prompt setting on the remote side, and see whether Tramp goes
through. If this test succeeds, we can investigate how you could
tetermine the presence of Tramp, if the test for $TERM is not
applicable.

If not, then we must continue with the EOL issue.

> ...Lyall

Best regards, Michael.




  reply	other threads:[~2008-05-04 21:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-01  6:35 Help with Emacs 22.2.1 using TRAMP and PuTTY/plink lyallp
2008-05-04 11:23 ` Michael Albinus
     [not found] ` <mailman.11172.1209900210.18990.help-gnu-emacs@gnu.org>
2008-05-04 11:57   ` lyallp
2008-05-04 21:40     ` Michael Albinus [this message]
     [not found]     ` <mailman.11182.1209937216.18990.help-gnu-emacs@gnu.org>
2008-05-05  8:19       ` Livin Stephen
2008-05-05  9:33         ` lyallp
2008-05-06  0:05           ` lyallp

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=87bq3l92a1.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=Lyall.Pearce@gmail.com \
    --cc=help-gnu-emacs@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.