From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: rrandresf@gmail.com Newsgroups: gmane.emacs.devel Subject: Re: Emacs shell: set TERM to ansi instead of dumb Date: Wed, 04 Dec 2019 01:48:08 +0000 Organization: bien.comun.org Message-ID: <867e3c97zb.fsf@gmail.com> References: <877e3fomux.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="160158"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Trevor Spiteri , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 04 02:49:15 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1icJn0-000fQI-RI for ged-emacs-devel@m.gmane.org; Wed, 04 Dec 2019 02:49:14 +0100 Original-Received: from localhost ([::1]:33030 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icJmx-0002Ef-Ig for ged-emacs-devel@m.gmane.org; Tue, 03 Dec 2019 20:49:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43684) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icJmD-0002Bd-7P for emacs-devel@gnu.org; Tue, 03 Dec 2019 20:48:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1icJm7-00078S-2I for emacs-devel@gnu.org; Tue, 03 Dec 2019 20:48:20 -0500 Original-Received: from mail-qv1-xf35.google.com ([2607:f8b0:4864:20::f35]:44541) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1icJm6-00075t-T7 for emacs-devel@gnu.org; Tue, 03 Dec 2019 20:48:18 -0500 Original-Received: by mail-qv1-xf35.google.com with SMTP id n8so2419715qvg.11 for ; Tue, 03 Dec 2019 17:48:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:organization:references:date :message-id:mime-version; bh=X4e6q6R6CCtL8GOnxpvrwwK0wc84l3FSgKkXGiJ/0kA=; b=NEbMYN4oByncnYYG1c0JBNU258aHaCn/dlPLbzvlC3ExEfYiLd+vPlzATGGRluS9BS KodHE/4LBkFR5GMVjqGFclGvKcgzHIYkHQDA3P1gRDT80e3NoXEizkDqZzIKCzpi8qwD A4bYO5dhJNmRscLBN3tydt4YfQBGRQnbUlaAFMDTo7Vz7Shka42SjFFWLqhD5zZTTxa/ 5XmM7lNFJEmHWIPELiCyGsSWKX39s2nRoJ904T8KXftkvndkcjPeYj8a7GJ206/rwXSD siplQU/KUBvg4Fqr2QkOJm1xbu1Fgtfjz5DVHSYOgzU3o/XN0COVXGy6vNMDCUvB9pv5 eaDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:organization :references:date:message-id:mime-version; bh=X4e6q6R6CCtL8GOnxpvrwwK0wc84l3FSgKkXGiJ/0kA=; b=gNm2GARsC+Qwyl/hw6x41kPs5/Nn7Rz9nqjk6Jb058OyUj3DImcDGXTyIaHO0GG80T Vx3qUlouFPo3I5ZQK/1Vtz1L62wNI4wLAdeSxp2aYFldkwxPMebUPlLurMS7MQVXwFst z7pjvtaugxpRKlJJFcNEI/a+yuERfeUsYEY/k1BBLggGqyCaRz9k4RuMFQ2wdo9aYyUC 2iQUt0jGufv7uysgKfc6uaJXnWD/We/9+p4pOkTpHbk70pGnbTwqwDiXX80ffaNMZmWE 6oojX4IygeFTnERE18IR8LQBrGPljN5ORtFeohQeTfK/dL+LyN90w/sabMCYLwoTDqgO FzUQ== X-Gm-Message-State: APjAAAU6Bud1braHwNp0GTI1j3oiSn9z514Enx69CNAASG6HtkeWXNgJ l8A6h1zgqpVSZeLbAUPW1SItiqC6 X-Google-Smtp-Source: APXvYqw5BrjghrGn7Qdeh9386IsScTSJQCtF/Gl3panpi9UyS/rGHRYKPZ2vU3PEXBgoGDd+jMsncA== X-Received: by 2002:a0c:e790:: with SMTP id x16mr678309qvn.18.1575424095117; Tue, 03 Dec 2019 17:48:15 -0800 (PST) Original-Received: from sacsa.n800.arm.processor.yandex.fm ([190.239.244.220]) by smtp.gmail.com with ESMTPSA id r48sm2873224qte.49.2019.12.03.17.48.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Dec 2019 17:48:14 -0800 (PST) In-Reply-To: <877e3fomux.fsf@mail.linkov.net> X-Attribution: INKA X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::f35 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:243105 Archived-At: Hi Juri. Juri> Thanks for suggestion. I tried to use "TERM=ansi" together with Juri> customizing 'comint-terminfo-terminal' to "ansi", and it works Juri> fine everywhere, except compilation mode. In compilation Juri> buffers it inserts unhandled escape sequences that break Juri> fontification. Had to disable ansi in compilation by Juri> customizing 'compilation-environment' to '("TERM=dumb")'. I am still seeing the "unhandled escape sequences" on "*compilation*" buffer see: --8<---------------cut here---------------start------------->8--- -*- mode: compilation; default-directory: "/ssh:aramirez@x220c:/home/aramirez/dev/wxwidgets/mamacha/src/tests/build/" -*- Compilation started at Wed Dec 4 01:34:34 cd build && make -k -j4 && cd - [35m[1mScanning dependencies of target invcross_tests[0m make: Target 'default_target' not remade because of errors. ... Compilation exited abnormally with code 2 at Wed Dec 4 01:34:36 --8<---------------cut here---------------end--------------->8--- BTW, above is compilation by tramp. Those were my customizations: --8<---------------cut here---------------start------------->8--- (progn (setq comint-terminfo-terminal "ansi") (add-to-list 'compilation-environment "TERM=dumb")) --8<---------------cut here---------------end--------------->8--- Is there something else. I should customize? BR ps: probably the escape sequences are going to be replaced when sending email. In that case https://termbin.com/41th