From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#66128: 28.2; visible-bell breaks setterm --inversescreen on Date: Sat, 23 Sep 2023 08:38:53 +0300 Message-ID: <83cyy95tzm.fsf@gnu.org> References: <87zg1gk3eu.fsf@neko.mail-host-address-is-not-set> <83sf789l3w.fsf@gnu.org> <87h6nmvu61.fsf@neko.mail-host-address-is-not-set> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13734"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66128@debbugs.gnu.org To: Tomas Hlavaty , Thomas Dickey Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 23 07:40:14 2023 Return-path: Envelope-to: geb-bug-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 1qjvNG-0003PI-LQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Sep 2023 07:40:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjvMv-0003Qw-RE; Sat, 23 Sep 2023 01:39:53 -0400 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 1qjvMt-0003QX-ER for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2023 01:39:51 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjvMt-0006mi-6c for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2023 01:39:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjvN3-0001Lv-Mu for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2023 01:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Sep 2023 05:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66128 X-GNU-PR-Package: emacs Original-Received: via spool by 66128-submit@debbugs.gnu.org id=B66128.16954475445121 (code B ref 66128); Sat, 23 Sep 2023 05:40:01 +0000 Original-Received: (at 66128) by debbugs.gnu.org; 23 Sep 2023 05:39:04 +0000 Original-Received: from localhost ([127.0.0.1]:37620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjvM8-0001KX-Dm for submit@debbugs.gnu.org; Sat, 23 Sep 2023 01:39:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49658) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjvM4-0001Jv-DY for 66128@debbugs.gnu.org; Sat, 23 Sep 2023 01:39:02 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjvLn-0006bp-FV; Sat, 23 Sep 2023 01:38:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=uFaZbEkq4JImPy3HR93cYZwfT805eY7RepjTyrZIw+k=; b=f7d/ttr5wk5Y OV+wPfZHesHi7C4ZL9KNCtUZkNmVkPsHdLdt4MnC7v+7VcrJTGe1DrZyCCg/colRn/2EnQh27Grv7 F7cn1B6F9sbZa2siP+7ppBvjdVsTy3zjmFOvzVXVXwbDC76ZzuMVTTeqAZBXk+KjgzhUrs0MQou7x vSSFRq8Ir23CflFMpGDPD7o+wTFTi2Hdxpw2S5xScqMqmLoxYIBE0IIwZmltdUN+GmFdATiL1oSbb ipezncz02iFXFwCP8g/cYkhveYELeDPX+Oy0HxJNZvnsYSBWxFuWJ9fGI3cKYXExbDr0oex56m84Z G/Fr0ovmJkU1IFjzJv7wmg==; In-Reply-To: <87h6nmvu61.fsf@neko.mail-host-address-is-not-set> (message from Tomas Hlavaty on Fri, 22 Sep 2023 22:18:14 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:271134 Archived-At: > From: Tomas Hlavaty > Cc: 66128@debbugs.gnu.org > Date: Fri, 22 Sep 2023 22:18:14 +0200 > > On Thu 21 Sep 2023 at 08:00, Eli Zaretskii wrote: > > Emacs just sends to the terminal the sequence defined by the "vb" > > termcap capability. Is that not correct when the screen colors are > > inverted? > > I do not know. > > > Is this perhaps the problem of the terminal? > > No, I get the same behaviour in xfce4-terminal and kitty, so this does > not seem to be specific problem with the linux console. > > I think I wrote it in the bug report too, under an X based terminal: > > $ emacs -nw -Q --eval '(setq visible-bell t)' > > then press PgUp. > > > Btw, we always use the termcap's "vb", even when terminfo is > > available; should we use the terminfo's "flash" instead? > > I do not know. Thomas, could you perhaps help us out here? This is about sending the "visible bell" sequence to a terminal after "setterm --inversescreen on". The original report is: $ setterm --inversescreen on $ emacs -Q --eval '(setq visible-bell t)' Then in Emacs do something that causes a bell, like try moving beyond the buffer's end. This causes the Emacs background to become white, i.e. the visible-bell somehow countermands the inversescreen state. Can you think of any reason for this behavior? Do terminals honor inversescreen when they perform the visible-bell function? Emacs just sends the sequence reported by the "vb" termcap capability of the terminal when the visible-bell is triggered. Thanks.