From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: What capabilities do you wish terminal emulators would report? Date: Fri, 8 May 2020 11:29:50 -0700 Message-ID: <68b67ab2-dddc-aa07-d946-6fb1b3f4f742@dancol.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="100799"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 To: George Nachman , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 08 20:43:18 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jX7xt-000Q7A-Qx for ged-emacs-devel@m.gmane-mx.org; Fri, 08 May 2020 20:43:17 +0200 Original-Received: from localhost ([::1]:33610 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jX7xs-0005Ki-O3 for ged-emacs-devel@m.gmane-mx.org; Fri, 08 May 2020 14:43:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34340) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jX7ky-0005Ec-2e for emacs-devel@gnu.org; Fri, 08 May 2020 14:29:56 -0400 Original-Received: from dancol.org ([2600:3c01::f03c:91ff:fedf:adf3]:36830) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jX7kw-0000WT-EQ for emacs-devel@gnu.org; Fri, 08 May 2020 14:29:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date: Message-ID:From:References:To:Subject:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=JKUIskaCJJoJf7E25/Xm1Q/w+XB7xBNQXYtvi+OlDto=; b=U7Cji6P4L2xw7px/DMyZLnEMkl 61pobEgjyHRv1ZKO6lDZY65vZVvY3tgXmfYxt3o+mUnK+7L7js8kFC94oI9/ExgnZu8rSIrQmBRsH 1X+RTIkjVWqqpXVX9Uusnb776I0rSRRTz27pDgwqXxjYH6LoajAaKW5eFG3/xNsTGYfYy+Fwix27L GaWcGUNQjhcI/Vs4JXjk/a4Nj19mi3mLKPKKyn4djPoO/zHWu+WGH+WVu7tw50Hgu8CSZcnucA4kF bDOTv+H+eEjULmmuYI6lvepn7H7E+IKRw1dMdvgibkqAT+3UtdhWRYoJH9UjX8VnQXf5c60WnCoaG 0mC+3r1g==; Original-Received: from [2604:4080:1321:9a00:cc88:bc25:b50e:59a4] by dancol.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1jX7kt-0002b1-H5; Fri, 08 May 2020 11:29:51 -0700 In-Reply-To: Content-Language: en-US Received-SPF: pass client-ip=2600:3c01::f03c:91ff:fedf:adf3; envelope-from=dancol@dancol.org; helo=dancol.org X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 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, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:249313 Archived-At: On 5/8/20 12:34 AM, George Nachman wrote: > Some terminal emulator authors (VTE, xterm, tmux, mintty, libvterm, > iTerm2, and others) are discussing building a new mechanism for > reporting capabilities. For context: > https://github.com/mintty/mintty/issues/881 Hallelujah. > My goal is to collect desires from developers of popular applications. > What capabilities do you wish you could discover about terminals that > you don't already get from terminfo? > > For example, being able to detect 24-bit color support, available cursor > styles, bracketed paste support, and mouse reporting modes are the kinds > of capabilities that would be included. I wrote about this issue a little while ago: https://www.facebook.com/notes/daniel-colascione/term-is-terminally-broken/10154219967001102/ Using an environment variable might be fine so long as it's *one* environment variable, minimizing the pain of transition. But there are zillions of scripts and daemons out there that special-case TERM. (For example, sudo often puts TERM on an environment variable preservation whitelist.) It'd probably be easier to make a new special TERM variable that means "I support introspection and also speak xtermeese". > They would likely be exposed > through a combination of a new environment variable and a > to-be-determined control sequence that reports them. Kitty's mechanism for explicitly setting character-cell properties would be great to discover too --- it's a much better alternative to BCE.