From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emilio Lopes Newsgroups: gmane.emacs.help Subject: Re: weird emacs shell behavior Date: Fri, 17 Aug 2007 20:38:43 +0200 Organization: The Church of Emacs Message-ID: <9bfy2i0zws.fsf@freenet.de> References: <87d4xmhxlr.fsf@W0053328.mgh.harvard.edu> <3esl6i10s5.fsf@freenet.de> <87zm0qggqa.fsf@W0053328.mgh.harvard.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1187379640 32078 80.91.229.12 (17 Aug 2007 19:40:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 17 Aug 2007 19:40:40 +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 17 21:40:38 2007 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 1IM7gT-0000SP-LC for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Aug 2007 21:40:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IM7gT-0003kh-60 for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Aug 2007 15:40:37 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.freenet.de!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Emacs Gnus Cancel-Lock: sha1:rSxbbDHBSFktoRUC2fXo7vGZofY= Original-Lines: 25 Original-NNTP-Posting-Host: 27775177.news.freenet.de Original-X-Trace: DXC=8o; >`=:Sf>@H[@^B>[cOcIKZSdekToV0BjR9l; IkP4_Iga8fh`IQcSE03^eLW=D5HAkUmVjfG22TJ Original-X-Complaints-To: abuse@freenet.de Original-Xref: shelby.stanford.edu gnu.emacs.help:151082 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:46657 Archived-At: Joel J Adamson writes: > What's the difference between shell-mode and a terminal emulator? `shell-mode' is a mode for running a command interpreter (in most cases a shell) in an Emacs buffer. All Emacs commands are available and work as expected: pressing "C-p" will move the cursor to the previous line, "C-w" will kill the region etc. In the terminal emulator you can run *any* terminal program, be it a shell, a mailer or even VI (forgive the heresy!). How the keybindings behave is dictated by the program running in the terminal. If you want to run a terminal program like "trn", "less" or "lynx" you have no option but `ansi-term'. For running a command interpreter `shell-mode' offers you the best of both worlds: you can run your shell *and* have all Emacs text manipulation facilities at your disposal. Note that in shell-mode the command line editing provided by the your shell (e.g. "readline") is not available; "shell-mode" provides it's own command line editing facilities. -- Emílio C. Lopes Munich, Germany