From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Proulx Newsgroups: gmane.emacs.help Subject: Re: Cisco Router Tab Completion in SSH from Emacs Date: Sat, 30 Nov 2013 19:04:47 -0700 Message-ID: <20131201020447.GA24800@hysteria.proulx.com> References: <87eh61ku9g.fsf@quasar.esben-stien.name> <87wqjqh621.fsf@quasar.esben-stien.name> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1385863507 28247 80.91.229.3 (1 Dec 2013 02:05:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Dec 2013 02:05:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 01 03:05:12 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VmwPH-0000YB-R8 for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Dec 2013 03:05:11 +0100 Original-Received: from localhost ([::1]:53837 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmwPH-0007Ht-Be for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Nov 2013 21:05:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmwP1-0007Fu-Vx for help-gnu-emacs@gnu.org; Sat, 30 Nov 2013 21:05:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VmwOw-0001Mk-0v for help-gnu-emacs@gnu.org; Sat, 30 Nov 2013 21:04:55 -0500 Original-Received: from joseki.proulx.com ([216.17.153.58]:39964) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmwOv-0001MZ-QC for help-gnu-emacs@gnu.org; Sat, 30 Nov 2013 21:04:49 -0500 Original-Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id C4E612122A for ; Sat, 30 Nov 2013 19:04:47 -0700 (MST) Original-Received: by hysteria.proulx.com (Postfix, from userid 1000) id A156A2DCD5; Sat, 30 Nov 2013 19:04:47 -0700 (MST) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <87wqjqh621.fsf@quasar.esben-stien.name> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 216.17.153.58 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94755 Archived-At: Esben Stien wrote: > Barry Margolin writes: > > he should use M-x terminal-emulator if he wants special keys to be > > sent to the remote host. > > This is something different than M-x term? > > I don't have M-x terminal-emulator in my emacs-24.3.50.1, but I guess > it's the same as M-x term. > > M-x term captures everything it seems, so it kind of defeats the purpose > of running this inside emacs. You misunderstand. In term mode C-c is the key prefix when in the default character mode. And you can toggle between character mode and line mode easily with C-c C-j and C-c C-k. When in line mode C-c C-j then you don't need a prefix. I use term quite a bit. > Is there no prefix or something I can use in eshell to transmit a simple > TAB? The problem with eshell and then using ssh within it to log onto a remote machine is that it is always in line mode. Try using TRAMP. This is fully documented in the tramp manual. 5.5.4 Running `eshell' on a remote host --------------------------------------- TRAMP is integrated into `eshell.el'. That is, you can open an interactive shell on your remote host, and run commands there. Try this: M-x eshell cd /user@remote: Or just remote if the user is the same: cd /remote: I think that will do what you want. Bob