all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Alexandrov <321942@gmail.com>
To: "help-gnu-emacs\@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: the dumb Emacs terminal
Date: Mon, 11 Jul 2016 15:05:20 +0300	[thread overview]
Message-ID: <87h9bwqt1b.fsf@gmail.com> (raw)
In-Reply-To: <CAOj2CQTffza3WwKnY-vzRNokQP4EE6t0xxL6F+c0sU6bFLwMXg@mail.gmail.com> (John Mastro's message of "Sat, 9 Jul 2016 15:02:53 -0700")

John Mastro <john.b.mastro@gmail.com> writes:

> Emanuel Berg <embe8573@student.uu.se> wrote:
>> And does the Emacs terminal have to be dumb?
>
> M-x shell isn't really a terminal (emulator) at all, which is also why
> you can't run e.g. htop there.

Which does not mean that it does not support basic coloring though.  It
does, but hides that fact from any program.

--8<---------------cut here---------------start------------->8---
$ for i in {1..8} {30..37}; do
    printf '\e[%dmA\e[0m ' $i
done
echo
--8<---------------cut here---------------end--------------->8---

‘--color=always’ with GNU (Core|Find|...)utils and other utilities that
support it should also work.

Thus providing its own termcap file for comint-mode (and eshell-mode
also) instead of using ‘dumb’ indeed would be reasonable.

> If you try "tput setaf 2 && echo green" in either M-x term or M-x
> ansi-term, you'll see that it does work there.
>
> I nonetheless prefer M-x shell over Emacs's terminal emulators.



  reply	other threads:[~2016-07-11 12:05 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                   ` Dmitry Alexandrov [this message]
     [not found]                 ` <mailman.949.1468101798.26859.help-gnu-emacs@gnu.org>
2016-07-09 22:38                   ` the dumb Emacs terminal Emanuel Berg
2016-07-10  0:01                     ` John Mastro
     [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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h9bwqt1b.fsf@gmail.com \
    --to=321942@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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.