unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* completion while su-ing in eshell
@ 2002-10-19 19:14 lorint.hendschel
  2002-11-01  5:19 ` John Wiegley
  0 siblings, 1 reply; 2+ messages in thread
From: lorint.hendschel @ 2002-10-19 19:14 UTC (permalink / raw)


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.

I use Emacs 21.2-1, eshell 2.4.2 on Debian/Gnu/Linux Woody.

Thanks for any hint.

Lorint

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: completion while su-ing in eshell
  2002-10-19 19:14 completion while su-ing in eshell lorint.hendschel
@ 2002-11-01  5:19 ` John Wiegley
  0 siblings, 0 replies; 2+ messages in thread
From: John Wiegley @ 2002-11-01  5:19 UTC (permalink / raw)


>>>>> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-01  5:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-19 19:14 completion while su-ing in eshell lorint.hendschel
2002-11-01  5:19 ` John Wiegley

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).