unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: John Mastro <john.b.mastro@gmail.com>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: the dumb Emacs terminal
Date: Sat, 9 Jul 2016 17:01:38 -0700	[thread overview]
Message-ID: <CAOj2CQRfVQ069DzppX9qy-h+5oh6eD=bumY8xXdHz-RzBNjj_w@mail.gmail.com> (raw)
In-Reply-To: <8660sea141.fsf_-_@student.uu.se>

Emanuel Berg <embe8573@student.uu.se> wrote:
>> M-x shell isn't really a terminal (emulator)
>> at all, which is also why you can't run e.g.
>> htop there.
>
> Right, you can't use even more basic stuff like
> 'clear'. Is it just able to output new lines,
> not change the state of what has already
> been outputted?

Yes, pretty much - it just sends a line of input and then prints the
output.

>> I nonetheless prefer M-x shell over Emacs's
>> terminal emulators.
>
> Why go into the small workshop, when there is
> a big?

I like the simplicity and that I can work in/with the *shell* buffer
just like any "normal" buffer. I do, of course, sometimes use programs
that don't work there, but it's rare enough that I don't mind switching
to a separate terminal emulator on those occasions.

Many of the things I previously would have done in a terminal emulator
that wouldn't have worked well in M-x shell I now do in various Emacs
modes anyway. (Mail, some version control tasks, reading man pages,
etc.)

> Only a lot of shortcuts including M-x seem to
> be shadowed by the shell, that must be dealt
> with as I seldom or never use them with the
> shell but with Emacs I do it all the time
> obviously. So it should be mergable that way,
> God willing.

Both term and ansi-term make a distinction between "line mode" and "char
mode", which send input to the shell a line at a time or a character at
a time respectively. They start out in char mode by default; you can
switch to line mode with C-c C-j and back to char mode with C-c C-k.
Line mode is more similar to M-x shell and using it, when possible,
helps close some of the distance.

        John



  reply	other threads:[~2016-07-10  0:01 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-08  8:02 Suggested font lock preferences for GNU Emacs Davin Pearson
2016-07-08  9:34 ` Yuri Khan
2016-07-09  1:25   ` Davin Pearson
2016-07-09 10:50     ` Alex Kost
2016-07-10  1:14       ` Davin Pearson
2016-07-10  4:30       ` Davin Pearson
     [not found]       ` <mailman.966.1468125047.26859.help-gnu-emacs@gnu.org>
2016-07-10  5:19         ` Emanuel Berg
2016-07-10 14:50           ` Stefan Monnier
     [not found]           ` <mailman.986.1468162252.26859.help-gnu-emacs@gnu.org>
2016-07-10 21:24             ` Emanuel Berg
2016-07-10 21:29               ` Stefan Monnier
     [not found]               ` <mailman.1063.1468186213.26859.help-gnu-emacs@gnu.org>
2016-07-10 21:46                 ` Emanuel Berg
     [not found]       ` <mailman.959.1468113265.26859.help-gnu-emacs@gnu.org>
2016-07-10  5:33         ` Emanuel Berg
2016-07-08 12:01 ` Emanuel Berg
2016-07-08 12:20   ` Yuri Khan
     [not found]   ` <mailman.821.1467980455.26859.help-gnu-emacs@gnu.org>
2016-07-08 13:40     ` Emanuel Berg
2016-07-08 14:12       ` Yuri Khan
     [not found]       ` <mailman.831.1467987165.26859.help-gnu-emacs@gnu.org>
2016-07-08 18:19         ` Emanuel Berg
2016-07-08 21:41         ` rotating the palette (was: Re: Suggested font lock preferences for GNU Emacs) Emanuel Berg
2016-07-08 23:57           ` Emanuel Berg
2016-07-09  1:57             ` Emanuel Berg
2016-07-09 21:19               ` the dumb Emacs terminal (was: Re: rotating the palette) Emanuel Berg
2016-07-09 22:02                 ` John Mastro
2016-07-11 12:05                   ` the dumb Emacs terminal Dmitry Alexandrov
     [not found]                 ` <mailman.949.1468101798.26859.help-gnu-emacs@gnu.org>
2016-07-09 22:38                   ` Emanuel Berg
2016-07-10  0:01                     ` John Mastro [this message]
     [not found]                     ` <mailman.954.1468108922.26859.help-gnu-emacs@gnu.org>
2016-07-10  5:29                       ` Emanuel Berg
2016-07-10 22:46                       ` Emanuel Berg

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='CAOj2CQRfVQ069DzppX9qy-h+5oh6eD=bumY8xXdHz-RzBNjj_w@mail.gmail.com' \
    --to=john.b.mastro@gmail.com \
    --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).