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: Thu, 21 Sep 2023 08:00:19 +0300 Message-ID: <83sf789l3w.fsf@gnu.org> References: <87zg1gk3eu.fsf@neko.mail-host-address-is-not-set> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37813"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66128@debbugs.gnu.org To: tom@logand.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 21 07:01:21 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 1qjBoW-0009ep-N3 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Sep 2023 07:01:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjBoA-0001xt-Ky; Thu, 21 Sep 2023 01:00:58 -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 1qjBo8-0001xl-6P for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 01:00:56 -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 1qjBo4-0003ey-Ez for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 01:00:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjBoD-0002SQ-R6 for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 01:01: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: Thu, 21 Sep 2023 05:01: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.16952724339400 (code B ref 66128); Thu, 21 Sep 2023 05:01:01 +0000 Original-Received: (at 66128) by debbugs.gnu.org; 21 Sep 2023 05:00:33 +0000 Original-Received: from localhost ([127.0.0.1]:60761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjBnl-0002RY-DJ for submit@debbugs.gnu.org; Thu, 21 Sep 2023 01:00:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjBnj-0002RJ-Nd for 66128@debbugs.gnu.org; Thu, 21 Sep 2023 01:00:32 -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 1qjBnT-0003TL-Ui; Thu, 21 Sep 2023 01:00:16 -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=0IM1JnBmdXxCEXQDFYWI+opX+FtfZlsQ3IfNZvOMqhY=; b=Hf6yrRkWZTUt GycmlJdb2/iN7AQ/2rWgl46wTJixlGsGW84gL0506wbyiugbnyiiBRY6lMo8985nu+bAPMWpjCWod UbnCGvdOXB2ag4aLNir3lvnWdapgAaH5TZePuiZQ4AzCTrd6yOXz7f+/gNfoOIDDx619aYcxCeXsS kAMBVS3g2U+Yi0aXq4IHCOhbwneIIMVkGQ9PjvKq5vl3ovGoK6cSMVyG8yJtF8JNI9cXyRuStLaRb 31MHBZHBgFTom3m+RZPwtY8V/w/UzEZmUSKkFgGGyemA/vSbQBdkY1dwBYXJVF+eQf1U8wnUvaB8e vEioclbYchxVS7KZoc281Q==; In-Reply-To: <87zg1gk3eu.fsf@neko.mail-host-address-is-not-set> (tom@logand.com) 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:270973 Archived-At: > From: tom@logand.com > Date: Wed, 20 Sep 2023 22:14:49 +0200 > > > > in black linux console: > > $ setterm --inversescreen on > > after that, in white linux console: > > $ emacs -Q --eval '(setq visible-bell t)' > > all looks fine, emacs background is white > now press page-up key to trigger visual bell > and suddenly emacs background is black > visual bell should preserve terminal colors Emacs just sends to the terminal the sequence defined by the "vb" termcap capability. Is that not correct when the screen colors are inverted? Is this perhaps the problem of the terminal? Btw, we always use the termcap's "vb", even when terminfo is available; should we use the terminfo's "flash" instead?