unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: John Wiegley <johnw@gnu.org>
Subject: Re: completion while su-ing in eshell
Date: Thu, 31 Oct 2002 22:19:41 -0700	[thread overview]
Message-ID: <87lm4dyihe.fsf@alice.dynodns.net> (raw)
In-Reply-To: 87ptu6z1e5.fsf@axhlave.cottages

>>>>> On Sat Oct 19, lorint writes:

> Hi, In eshell, when I su to root or another user, tab completion
> acts strange: nothing is echoed except the tab, yet completion
> works, i.e.  if I hit enter after this:

> # ls G______

> , I can actually see the contents of directory GNUstep.  In
> addition, M-p and M-n to browse through the command history do not
> work.

> Google shows that someone posted the same question 1 year ago, but
> there was no answer.

The answer is: Eshell is not a terminal emulator.  It does not
attempt to interpret control characters sent from/to externally
invoked programs.  So, TAB is just TAB.

Now, you can try setting `eshell-send-direct-to-subprocesses' to t,
in which case the TAB will be sent immediately to the subprocess.
If that process handles TAB, then it will provide its own
completion.  This command does not always do what you expect, so it
will require some experimentation.

You can also try adding the command to `eshell-visual-commands'.
This will run it in an "ansi term" buffer, which also communicates
directly with the subprocess.  I use this for "ssh", for example.

John

      reply	other threads:[~2002-11-01  5:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-19 19:14 completion while su-ing in eshell lorint.hendschel
2002-11-01  5:19 ` John Wiegley [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lm4dyihe.fsf@alice.dynodns.net \
    --to=johnw@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).