From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Samuel Wales Newsgroups: gmane.emacs.help Subject: Re: TERM and shell mode Date: Wed, 8 Mar 2023 17:53:21 -0700 Message-ID: References: <83lekecnbz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27059"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 09 01:54:01 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pa4Xh-0006pk-Gu for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 09 Mar 2023 01:54:01 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pa4XA-0001Hu-LZ; Wed, 08 Mar 2023 19:53:28 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pa4X9-0001Hi-Jn for help-gnu-emacs@gnu.org; Wed, 08 Mar 2023 19:53:27 -0500 Original-Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pa4X7-0000ZC-Pv; Wed, 08 Mar 2023 19:53:27 -0500 Original-Received: by mail-lj1-x22a.google.com with SMTP id b10so267028ljr.0; Wed, 08 Mar 2023 16:53:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678323203; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=L/BRByXvkcgnqPQZrOnpSU+uhMsjJh0NZZzcpXqx1N0=; b=lLKT25vb5xAlH9oKz2iKcjJVPkWNHerLPYtEieNkl1OU23cg7MxFX2YvXQ57uw9OeZ 36caf/lxdMYl/S1gqADkElD77vtqmv1/Gcwy2IFWE8DTvVdVYL6hO5TuvQgq7+CyTGgK bNUy/jdkAbfszEYDjbExaAADqQqEsQ54aG8MvvHfaY+CDgOGvmAMxM50sU0SV3ZkL7nk B5A67b8SxMsFfAOP6S2cSmELAKSU3hr7AsJhn5Ez0kVwIEFL+v34ERwgGfrYzJMYrAEP mqgUszbqImDyktFlO7gucTdAmdPhSqlKt9gS/6TyEvz/LgkCUsrTspNljLey/066egrw 37aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678323203; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=L/BRByXvkcgnqPQZrOnpSU+uhMsjJh0NZZzcpXqx1N0=; b=3JsUHoV0dBRlH9zcg/NmuX1wmsJt8iZ8W7Phrh2N1pAeP5xCQBq4qetLQA2hnsx0I/ U+SH42+mziZBwTUuTklC6dhkmjQxqhvM41LjS17U1vf4ev68F7tH4S3o903PAmr981vb /SH45K0W36W5c6vAaiQpOXj0+ysg/ti3fRFxsir69xtvjSzpSfTSMBMQMK5B7817gAke gANboKAw49A4j0ghYmoEoVTPGq8N4Hx5FEMGjO1zGOqjnRF3QSrTvkA86SDX35SQP2v8 IZUxojK3ubM9Jhs4EekLpmrrSlD0u7cIQERZfEzDFeQfsCPEsSOP77g5KSS/ddOO+LUR CYZg== X-Gm-Message-State: AO0yUKU+flmi4wiBWLQsfxm776mVbt4fddxo9uJV9xZA6wyt+fDxOd+t 7uhhjsg0Hec5x1iv4imlvy0LwYzO5svejA5xS2j0rpFjUf6WSw== X-Google-Smtp-Source: AK7set9xCXrVlS0HI4BsdbcTZrccBZydl/QDUphhK7FBgRhAuY62tAXmhDIgbnQMByN8cFmbhQBywQkGvICfThpieGA= X-Received: by 2002:a05:651c:b9b:b0:293:4e6d:f4f7 with SMTP id bg27-20020a05651c0b9b00b002934e6df4f7mr6245401ljb.3.1678323202382; Wed, 08 Mar 2023 16:53:22 -0800 (PST) Original-Received: by 2002:aa6:ca07:0:b0:24f:57d9:a46d with HTTP; Wed, 8 Mar 2023 16:53:21 -0800 (PST) In-Reply-To: <83lekecnbz.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::22a; envelope-from=samologist@gmail.com; helo=mail-lj1-x22a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:142952 Archived-At: that var does not exist in my emacs version, so i did not set it. i guess i should let sleeping dogs lie until new versions. i want shell mode's features, not a terminal. shell mode works with ansi colors. i find emacs term to be buggy. yes, i should try vterm at some point. and coterm. i have no settings of xterm in shell or elisp. On 3/3/23, Eli Zaretskii wrote: >> From: Samuel Wales >> Date: Thu, 2 Mar 2023 17:18:29 -0700 >> >> emacs -Q says dumb for TERM for shell mode. one issue with this i >> have a note saying is that colored output can silently corrupt cmd | >> grep if TERM=dumb. or similr. idr the details. but i recall the >> problem and debugged it to the TERM variable. >> >> termprarily setting term to xterm fixed that problem but i have no >> idea where it is being set permanntly. > > Did you try to change the value of comint-terminfo-terminal? > > Also, if you want to run programs that need colors or other features > of a terminal emulator, I think you should use "M-x ansi-term" instead > of "M-x shell", or at least try that to see if it solves your > problems. > > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com