From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jonathan Groll Newsgroups: gmane.emacs.help Subject: M-x terminal-emulator vs M-x term (was: Re: Optimal emacs shell for coding) Date: Fri, 15 Aug 2008 11:38:15 +0200 Message-ID: <20080815093815.GA11969@groll.co.za> References: <577bf477-6877-4cab-b4c3-fb72b995a095@i20g2000prf.googlegroups.com> <87wsim4q53.fsf@lion.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1218793132 13933 80.91.229.12 (15 Aug 2008 09:38:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Aug 2008 09:38:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 15 11:39:45 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KTvma-00056a-M3 for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Aug 2008 11:39:44 +0200 Original-Received: from localhost ([127.0.0.1]:57759 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTvle-0007GL-5V for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Aug 2008 05:38:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTvlD-0007En-TN for help-gnu-emacs@gnu.org; Fri, 15 Aug 2008 05:38:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTvlB-0007Ch-Mo for help-gnu-emacs@gnu.org; Fri, 15 Aug 2008 05:38:19 -0400 Original-Received: from [199.232.76.173] (port=49207 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTvlB-0007Cd-Ht for help-gnu-emacs@gnu.org; Fri, 15 Aug 2008 05:38:17 -0400 Original-Received: from mail.groll.co.za ([67.18.176.185]:36550) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KTvlB-0003Iq-6p for help-gnu-emacs@gnu.org; Fri, 15 Aug 2008 05:38:17 -0400 Original-Received: by mail.groll.co.za (Postfix, from userid 1004) id 4FE39258F0; Fri, 15 Aug 2008 11:38:15 +0200 (SAST) Content-Disposition: inline In-Reply-To: <87wsim4q53.fsf@lion.rapttech.com.au> User-Agent: Mutt/1.5.13 (Linux mail 2.6.18.8-linode10 i686) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:56663 Archived-At: On Tue, Aug 12, 2008 at 06:02:48PM +1000, Tim X wrote: > It depends on what you want to do. If I'm writing shell scripts, I will > open an emacs buffer to put the script in and then run the script in > whichever other shell is most appropriate (depending on things such as > whether I plan to use redirection (don't use eshell), run with little > interaction (probably just use run-shell) or if I require ansi, ncurses or > other screen/terminal support, M-x term. > One thing that is difficult to understand is the difference between M-x term and M-x terminal-emulator The former behaves as is described in the Emacs manual for the node "Term mode", namely the C-c escape sequence is respected, there is both a char and a line mode, and a feature that I like, in char mode, is that the arrow keys work for browsing the shell history (under bash). However, launching a terminal emulator with M-x terminal-emulator results in completely different behaviour. The escape sequence is C-^. There does not seem to be a line mode? In adddition, in terminal-emulator the arrow keys are not bound - "Function key up>' ignored" and other messages appear if these keys are pressed. Is there a relationship between term and terminal-emulator (as the Emacs manual seems to imply?), and are there any known programs that work better in terminal-emulator than in term? Cheers, Jonathan.