unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Emilio Lopes <eclig@gmx.net>
To: help-gnu-emacs@gnu.org
Subject: Re: weird emacs shell behavior
Date: Fri, 17 Aug 2007 20:38:43 +0200	[thread overview]
Message-ID: <9bfy2i0zws.fsf@freenet.de> (raw)
In-Reply-To: 87zm0qggqa.fsf@W0053328.mgh.harvard.edu

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

  reply	other threads:[~2007-08-17 18:38 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.4916.1187369678.32220.help-gnu-emacs@gnu.org>
2007-08-17 17:36 ` weird emacs shell behavior Joel J. Adamson
2007-08-17 18:19   ` Emilio Lopes
2007-08-17 18:26     ` Joel J. Adamson
2007-08-17 18:38       ` Emilio Lopes [this message]
2007-08-17 19:40         ` Joel J. Adamson
2007-08-17 19:34     ` Tassilo Horn
2007-08-17 21:09       ` Peter Dyballa
     [not found]       ` <mailman.4930.1187384971.32220.help-gnu-emacs@gnu.org>
2007-08-18 14:36         ` Tassilo Horn
2007-08-18 16:11           ` Peter Dyballa
     [not found]           ` <mailman.4951.1187453499.32220.help-gnu-emacs@gnu.org>
2007-08-18 16:30             ` Tassilo Horn
2007-08-17 16:54 phundamental unaudio
2007-08-17 17:43 ` Peter Dyballa

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=9bfy2i0zws.fsf@freenet.de \
    --to=eclig@gmx.net \
    --cc=help-gnu-emacs@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).