[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: the dumb Emacs terminal

From: Dmitry Alexandrov
Subject: Re: the dumb Emacs terminal
Date: Mon, 11 Jul 2016 15:05:20 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

John Mastro <address@hidden> writes:

> Emanuel Berg <address@hidden> 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
--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 via email to

[Prev in Thread] Current Thread [Next in Thread]