From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Alexandrov <321942@gmail.com> Newsgroups: gmane.emacs.help Subject: Re: the dumb Emacs terminal Date: Mon, 11 Jul 2016 15:05:20 +0300 Message-ID: <87h9bwqt1b.fsf@gmail.com> References: <7184db3d-3990-4d23-8362-573c62056a4f@googlegroups.com> <86k2gwwd7a.fsf@student.uu.se> <86furkw8m5.fsf@student.uu.se> <86ziprajuh.fsf_-_@student.uu.se> <86mvlradjj.fsf@student.uu.se> <86inwfa7zm.fsf@student.uu.se> <86bn26a4rj.fsf_-_@student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1468238758 10868 80.91.229.3 (11 Jul 2016 12:05:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Jul 2016 12:05:58 +0000 (UTC) To: "help-gnu-emacs\@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 11 14:05:53 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bMZyC-0004HP-O3 for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Jul 2016 14:05:52 +0200 Original-Received: from localhost ([::1]:33334 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMZyB-0002ie-I6 for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Jul 2016 08:05:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <321942@gmail.com>) id 1bMZxj-0002iI-1O for help-gnu-emacs@gnu.org; Mon, 11 Jul 2016 08:05:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <321942@gmail.com>) id 1bMZxe-0001p2-QV for help-gnu-emacs@gnu.org; Mon, 11 Jul 2016 08:05:21 -0400 Original-Received: from mail-lf0-x22a.google.com ([2a00:1450:4010:c07::22a]:34662) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <321942@gmail.com>) id 1bMZxe-0001ot-Ij for help-gnu-emacs@gnu.org; Mon, 11 Jul 2016 08:05:18 -0400 Original-Received: by mail-lf0-x22a.google.com with SMTP id h129so70691726lfh.1 for ; Mon, 11 Jul 2016 05:05:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:in-reply-to:references:user-agent:mail-copies-to :date:message-id:mime-version:content-transfer-encoding; bh=jW0Sd2Uul11jvcBYbf09kjcVJMfIucmPWOC21lqd1Is=; b=uPpn7RXPQBIsmRa0JVh24NtJbxQDOW/QFz/4unC3C6bkYNxypA1G19iS47IlD0P6g1 PJw6k4XsPJg2gWlBq1q1SSw3gbkKdF3kdKgIg1cXzG0Wnyvdt/Hdif/HfZJRS5TeITU9 2rfKZb0PkRSc/wJB5sjmIXRXGQHEmFYRsmVTHJPNCemndm5ykkyYbyG0bUzPWSwOQfqx h2VX6bfSDb4p5qZorah+3rBECn3AvnoJxLWlQW+YHYd/6asHPLQCY8j7fZCdUfeA/005 38X9RTCrYUrN2mc2xdxef3859NY7NicO42oYvmCuvPh6yUkNfSP/k360UohjJNmzleH0 h5cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:in-reply-to:references :user-agent:mail-copies-to:date:message-id:mime-version :content-transfer-encoding; bh=jW0Sd2Uul11jvcBYbf09kjcVJMfIucmPWOC21lqd1Is=; b=kmsQe2adHNEWwUcY2uS77jdAYlnh20pSYlNoq1mua29425bs7oBzOhR/vgSEv+A/+n WD+CYBqIBVsjk35PVtzVgy+RLj6gnEwzxkDArYGIAQ3OvRLWSh4Cr3bBSyqeRWP52Any zI5gAC95osOSHsPWjj2Ndd+Rn7gmFyF99MzVw9m6m8xKIZFKc9c3YJWsn3D4o5rq3QVG NgSj2nN+tcQjJ+bR3tiu9MnzwrPqO51JcwXVxCp7BPV7M1ILbr/UHYC05Fiy58LxxKw0 POklCPYi04oXLRozCBFNy5BBkpnus5FIuut/0X72OTQyQEF05vYskX3STyNN1I49DZHa GIZg== X-Gm-Message-State: ALyK8tLxNJK7R8J0yZ1B088nGpUqMfaaR6BSPtBcljIO4Ly1aj7WfFIIt4T+DHn9bmFLeA== X-Received: by 10.25.23.99 with SMTP id n96mr3812781lfi.64.1468238717016; Mon, 11 Jul 2016 05:05:17 -0700 (PDT) Original-Received: from asus.local ([178.218.27.218]) by smtp.gmail.com with ESMTPSA id q195sm5068441lfe.33.2016.07.11.05.05.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Jul 2016 05:05:16 -0700 (PDT) In-Reply-To: (John Mastro's message of "Sat, 9 Jul 2016 15:02:53 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Mail-Copies-To: always X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::22a X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110771 Archived-At: John Mastro writes: > Emanuel Berg 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.