From unknown Mon Jun 23 13:09:11 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#66128 <66128@debbugs.gnu.org> To: bug#66128 <66128@debbugs.gnu.org> Subject: Status: 28.2; visible-bell breaks setterm --inversescreen on Reply-To: bug#66128 <66128@debbugs.gnu.org> Date: Mon, 23 Jun 2025 20:09:11 +0000 retitle 66128 28.2; visible-bell breaks setterm --inversescreen on reassign 66128 emacs submitter 66128 tom@logand.com severity 66128 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 20 16:15:16 2023 Received: (at submit) by debbugs.gnu.org; 20 Sep 2023 20:15:17 +0000 Received: from localhost ([127.0.0.1]:60434 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj3bQ-0002N0-9z for submit@debbugs.gnu.org; Wed, 20 Sep 2023 16:15:16 -0400 Received: from lists.gnu.org ([2001:470:142::17]:48438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj3bK-0002Me-O2 for submit@debbugs.gnu.org; Wed, 20 Sep 2023 16:15:14 -0400 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 1qj3b5-00085t-JU for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2023 16:14:55 -0400 Received: from logand.com ([37.48.87.44]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qj3b3-0005Gk-KY for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2023 16:14:55 -0400 Received: by logand.com (Postfix, from userid 1001) id 081E319E7ED; Wed, 20 Sep 2023 22:14:52 +0200 (CEST) X-Mailer: emacs 28.2 (via feedmail 11-beta-1 I) From: tom@logand.com To: bug-gnu-emacs@gnu.org Subject: 28.2; visible-bell breaks setterm --inversescreen on Date: Wed, 20 Sep 2023 22:14:49 +0200 Message-ID: <87zg1gk3eu.fsf@neko.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=37.48.87.44; envelope-from=tom@logand.com; helo=logand.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) 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 the same problem is in a X based terminals but with the command: $ emacs -nw -Q --eval '(setq visible-bell t)' In GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars) System Description: NixOS 23.05 (Stoat) Configured using: 'configure --prefix=/nix/store/5vx99s8cjzv8hcirly8g06alhjz0zaba-emacs-28.2 --disable-build-details --with-modules --with-x-toolkit=lucid --with-xft --with-cairo --with-native-compilation' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XAW3D XDBE XIM XPM LUCID ZLIB Important settings: value of $EMACSLOADPATH: value of $EMACSNATIVELOADPATH: /nix/store/bvkjcb6pzd3d51q9j7yhf3bhljxlvb95-emacs-packages-deps/share/emacs/native-lisp:: value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=fcitx locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: eev-mode: t global-git-commit-mode: t magit-auto-revert-mode: t shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: ~/git/emacs-unoffice/junk hides ~/git/emacs-pdf/junk ~/git/emacs-unoffice/junk hides ~/git/emacs-framebuffer/junk /run/current-system/sw/share/emacs/site-lisp/site-start hides /nix/store/bvkjcb6pzd3d51q9j7yhf3bhljxlvb95-emacs-packages-deps/share/emacs/site-lisp/site-start /run/current-system/sw/share/emacs/site-lisp/site-start hides /nix/store/5vx99s8cjzv8hcirly8g06alhjz0zaba-emacs-28.2/share/emacs/site-lisp/site-start /nix/store/bvkjcb6pzd3d51q9j7yhf3bhljxlvb95-emacs-packages-deps/share/emacs/site-lisp/elpa/transient-20230602.2121/transient hides /nix/store/5vx99s8cjzv8hcirly8g06alhjz0zaba-emacs-28.2/share/emacs/28.2/lisp/transient /nix/store/bvkjcb6pzd3d51q9j7yhf3bhljxlvb95-emacs-packages-deps/share/emacs/site-lisp/elpa/let-alist-1.0.6/let-alist hides /nix/store/5vx99s8cjzv8hcirly8g06alhjz0zaba-emacs-28.2/share/emacs/28.2/lisp/emacs-lisp/let-alist Features: (shadow sort mail-extr emacsbug sendmail term/xterm xterm elm-mode elm-interactive elm-font-lock elm-indent-simple elm-indent elm-imenu elm-format reformatter elm-tags elm-util pulse color let-alist f f-shortdoc shortdoc elm-defuns bmenu watch term2 shell2 vc-git vc-dispatcher emacs-btap ffap emacs-unoffice view org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete org-list org-faces org-entities org-version ob-emacs-lisp ob-core ob-eval org-table oc-basic bibtex iso8601 ol org-keys oc org-compat org-macs org-loaddefs find-func emacs-pdf printing ps-print ps-print-loaddefs ps-def lpr emacs-framebuffer eev-beginner eev-load eev-rcirc eev-videolinks eev-audiovideo eev-wconfig eev-rstdoc eev-helpful eev-kla eev-testblocks eev-edit eev-pdflike eejump eev-brxxx eev-code eev-hlinks eev-tlinks eev-wrap eev-env eev-elinks eev-plinks eev-blinks eev-template0 eev-anchors eev-codings eepitch disp-table eev-mode eev-eval eev-multiwindow eev-flash eev-intro dumb-jump popup s email-eww cltl clhs notmuch notmuch-tree notmuch-jump notmuch-hello notmuch-show notmuch-print notmuch-crypto notmuch-mua notmuch-message notmuch-draft notmuch-maildir-fcc notmuch-address notmuch-company notmuch-parser notmuch-wash coolj goto-addr icalendar diary-lib diary-loaddefs cal-menu calendar cal-loaddefs notmuch-tag notmuch-lib notmuch-compat hl-line mm-view mml-smime smime dig eww-lnum eww xdg url-queue shr kinsoku svg xml dom mm-url gnus nnheader wid-edit magit-submodule magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff git-commit log-edit message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process with-editor comp comp-cstr warnings rx shell pcomplete server magit-mode transient cl-extra help-mode magit-git magit-base magit-section format-spec cursor-sensor crm dash compat compat-29 diff-mode paredit slime-asdf grep slime-fancy slime-indentation slime-cl-indent cl-indent slime-trace-dialog slime-fontifying-fu slime-package-fu slime-references slime-compiler-notes-tree advice slime-scratch slime-presentations bridge slime-macrostep macrostep slime-mdot-fu slime-enclosing-context slime-fancy-trace slime-fancy-inspector slime-fuzzy slime-c-p-c slime-autodoc slime-editing-commands slime-repl slime-parse slime apropos compile text-property-search etags fileloop generator xref project arc-mode archive-mode noutline outline pp comint ansi-color ring hyperspec thingatpt picolisp tsm easy-mmode edmacro kmacro pcase slime-autoloads info package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo x-toolkit x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 437231 11723) (symbols 48 32051 0) (strings 32 122018 4648) (string-bytes 1 4605735) (vectors 16 57338) (vector-slots 8 976678 13985) (floats 8 643 306) (intervals 56 425 0) (buffers 992 12)) From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 21 01:00:33 2023 Received: (at 66128) by debbugs.gnu.org; 21 Sep 2023 05:00:33 +0000 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 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 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==; Date: Thu, 21 Sep 2023 08:00:19 +0300 Message-Id: <83sf789l3w.fsf@gnu.org> From: Eli Zaretskii To: tom@logand.com In-Reply-To: <87zg1gk3eu.fsf@neko.mail-host-address-is-not-set> (tom@logand.com) Subject: Re: bug#66128: 28.2; visible-bell breaks setterm --inversescreen on References: <87zg1gk3eu.fsf@neko.mail-host-address-is-not-set> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66128 Cc: 66128@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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? From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 22 16:18:36 2023 Received: (at 66128) by debbugs.gnu.org; 22 Sep 2023 20:18:37 +0000 Received: from localhost ([127.0.0.1]:37322 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjmbj-0003Lr-1l for submit@debbugs.gnu.org; Fri, 22 Sep 2023 16:18:36 -0400 Received: from logand.com ([37.48.87.44]:52192) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjmbd-0003Lf-E7 for 66128@debbugs.gnu.org; Fri, 22 Sep 2023 16:18:33 -0400 Received: by logand.com (Postfix, from userid 1001) id 8220F19E7F8; Fri, 22 Sep 2023 22:18:17 +0200 (CEST) X-Mailer: emacs 28.2 (via feedmail 11-beta-1 I) From: Tomas Hlavaty To: Eli Zaretskii Subject: Re: bug#66128: 28.2; visible-bell breaks setterm --inversescreen on In-Reply-To: <83sf789l3w.fsf@gnu.org> References: <87zg1gk3eu.fsf@neko.mail-host-address-is-not-set> <83sf789l3w.fsf@gnu.org> Date: Fri, 22 Sep 2023 22:18:14 +0200 Message-ID: <87h6nmvu61.fsf@neko.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 66128 Cc: 66128@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Eli, thanks for the quick reply. 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. Regards, Tomas From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 23 01:39:04 2023 Received: (at 66128) by debbugs.gnu.org; 23 Sep 2023 05:39:04 +0000 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 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 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==; Date: Sat, 23 Sep 2023 08:38:53 +0300 Message-Id: <83cyy95tzm.fsf@gnu.org> From: Eli Zaretskii To: Tomas Hlavaty , Thomas Dickey 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) Subject: Re: bug#66128: 28.2; visible-bell breaks setterm --inversescreen on References: <87zg1gk3eu.fsf@neko.mail-host-address-is-not-set> <83sf789l3w.fsf@gnu.org> <87h6nmvu61.fsf@neko.mail-host-address-is-not-set> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66128 Cc: 66128@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 24 20:07:28 2023 Received: (at 66128) by debbugs.gnu.org; 25 Sep 2023 00:07:28 +0000 Received: from localhost ([127.0.0.1]:43763 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qkZ8K-0001cd-03 for submit@debbugs.gnu.org; Sun, 24 Sep 2023 20:07:28 -0400 Received: from smtp-1a.his.com ([216.194.253.2]:43672) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qkZ8E-0001cQ-B4 for 66128@debbugs.gnu.org; Sun, 24 Sep 2023 20:07:26 -0400 Received: from cuda501.his.com (cuda501.his.com [18.191.10.220]) by smtp-1a.his.com (Postfix) with ESMTPS id 60D7E1DF for <66128@debbugs.gnu.org>; Sun, 24 Sep 2023 20:07:09 -0400 (EDT) X-ASG-Debug-ID: 1695600428-1f26af277cce800001-jgZTGW Received: from smtp-4a.his.com (smtp-4a.his.com [216.194.253.31]) by cuda501.his.com with ESMTP id RpMdoxmivi9Ass4z (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 24 Sep 2023 20:07:08 -0400 (EDT) X-Barracuda-Envelope-From: tom@invisible-island.net X-Barracuda-RBL-Trusted-Forwarder: 216.194.253.31 Received: from zproxy101.his.com (zproxy101.his.com [18.218.2.49]) by smtp-4a.his.com (Postfix) with ESMTPS id 3A4D42F; Sun, 24 Sep 2023 20:07:08 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by zproxy101.his.com (Postfix) with ESMTP id 0AA2717AEA8; Sun, 24 Sep 2023 20:07:08 -0400 (EDT) X-Barracuda-RBL-Trusted-Forwarder: 18.218.2.49 Received: from zproxy101.his.com ([127.0.0.1]) by localhost (zproxy101.his.com [127.0.0.1]) (amavis, port 10032) with ESMTP id Do7GQn5LOQkJ; Sun, 24 Sep 2023 20:07:07 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by zproxy101.his.com (Postfix) with ESMTP id DE24B17AEAA; Sun, 24 Sep 2023 20:07:07 -0400 (EDT) X-Virus-Scanned: amavis at zproxy101.his.com Received: from zproxy101.his.com ([127.0.0.1]) by localhost (zproxy101.his.com [127.0.0.1]) (amavis, port 10026) with ESMTP id naucRwynMYKY; Sun, 24 Sep 2023 20:07:07 -0400 (EDT) Received: from prl-debianold-64.jexium-island.net (static-96-255-221-90.washdc.fios.verizon.net [96.255.221.90]) by zproxy101.his.com (Postfix) with ESMTPSA id BFE9717AEA8; Sun, 24 Sep 2023 20:07:07 -0400 (EDT) Received: from tom by prl-debianold-64.jexium-island.net with local (Exim 4.94.2) (envelope-from ) id 1qkZ7v-0018KT-Nm; Sun, 24 Sep 2023 20:07:03 -0400 X-Barracuda-RBL-IP: 96.255.221.90 X-Barracuda-Effective-Source-IP: static-96-255-221-90.washdc.fios.verizon.net[96.255.221.90] X-Barracuda-Apparent-Source-IP: 96.255.221.90 Date: Sun, 24 Sep 2023 20:07:03 -0400 From: Thomas Dickey To: Eli Zaretskii Subject: Re: bug#66128: 28.2; visible-bell breaks setterm --inversescreen on Message-ID: X-ASG-Orig-Subj: Re: bug#66128: 28.2; visible-bell breaks setterm --inversescreen on References: <87zg1gk3eu.fsf@neko.mail-host-address-is-not-set> <83sf789l3w.fsf@gnu.org> <87h6nmvu61.fsf@neko.mail-host-address-is-not-set> <83cyy95tzm.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="EvFqkQdx3DOGVAUt" Content-Disposition: inline In-Reply-To: <83cyy95tzm.fsf@gnu.org> X-Barracuda-Connect: smtp-4a.his.com[216.194.253.31] X-Barracuda-Start-Time: 1695600428 X-Barracuda-Encrypted: TLS_AES_256_GCM_SHA384 X-Barracuda-URL: https://spam.his.com:443/cgi-mod/mark.cgi X-Barracuda-BRTS-Status: 1 X-Virus-Scanned: by bsmtpd at his.com X-Barracuda-Scan-Msg-Size: 2831 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=5.0 KILL_LEVEL=7.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.114558 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 66128 Cc: 66128@debbugs.gnu.org, Thomas Dickey , Tomas Hlavaty X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: dickey@his.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) --EvFqkQdx3DOGVAUt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Sep 23, 2023 at 08:38:53AM +0300, Eli Zaretskii wrote: > > From: Tomas Hlavaty > > Cc: 66128@debbugs.gnu.org > > Date: Fri, 22 Sep 2023 22:18:14 +0200 > >=20 > > 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? > >=20 > > I do not know. > >=20 > > > Is this perhaps the problem of the terminal? > >=20 > > No, I get the same behaviour in xfce4-terminal and kitty, so this does > > not seem to be specific problem with the linux console. > >=20 > > I think I wrote it in the bug report too, under an X based terminal: > >=20 > > $ emacs -nw -Q --eval '(setq visible-bell t)' > >=20 > > then press PgUp. > >=20 > > > Btw, we always use the termcap's "vb", even when terminfo is > > > available; should we use the terminfo's "flash" instead? > >=20 > > I do not know. >=20 > 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: >=20 > $ setterm --inversescreen on setterm doesn't have any special way of manipulating the terminal - it uses the same escape sequences that emacs would > $ emacs -Q --eval '(setq visible-bell t)' >=20 > 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. >=20 > Can you think of any reason for this behavior? Do terminals honor https://github.com/util-linux/util-linux/blob/master/term-utils/setterm.c https://github.com/util-linux/util-linux/blob/1e0ad14b3ac08d855cda6de346a65= f9b834e00db/term-utils/setterm.c#L1005 /* -inversescreen [on|off]. */ if (ctl->opt_inversescreen) fputs(ctl->opt_invsc_on ? "\033[?5h" : "\033[?5l", stdout); man console_codes ESC [ ? 5 h DECSCNM (default off): Set reverse-video mode. but visual-bell can be the same thing The "vb" termcap capability is found with "man 5 terminfo" flash_screen flash vb visible bell (may not move cursor) to be "flash" in terminfo, and "infocmp linux" shows flash=3D\E[?5h$<200/>\E[?5l, which is to say, turn reverse-video on wait 200 milliseconds turn reverse-video off > 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. >=20 > Thanks. --=20 Thomas E. Dickey https://invisible-island.net --EvFqkQdx3DOGVAUt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGYgtkt2kxADCLA1WzCr0RyFnvgMFAmUQzyQACgkQzCr0RyFn vgPdNwv/bubMqztTKYiVhC+6sCNj2na3b8Qej1ndO4U1JFynwpkl2qgBJf5tg7Z/ eA2n4wEgZO15KMotbTgL0gEunLpkXMIYdTcMqL67tDE5RSsUHOkHeS1Mc1YapUX7 wIvAKng6paeTlG/mj9Tbkq/ttU5oJMFuQby8LeqVDw+CcsMHfEqXkRxrFfaTKXOH Ufgz9FQ8ZbsaYG0oo1QalxIDxT7gNAhxUi4L6O0HpjyHsPEekYOxwpphgG1YlJL/ w8Gr0E4wcU5ZkZWfkTo4jk/O02ZmYbcuZdjPqRhXkfnoeKA/sCy9RIoT4dBrDPgP PopHSpfv3dio95JKelbvrVbp6yOuqPXS+AKHwkxkg2zO/cpZ4Co8ANka7EzUXWxH ec3YdzEL2ZhiR0uJYG/WJZDpuf4Vo6lQ2kT8C9848o4bVsaY0vcNamZFzL5nqadN j1An/ZzJV2K1QqTMh11eZB1YPokI1ZPSUoqVmwW9aprpJ3NA3uFAdsBNCb+zAJ8g cpzEDMJi =IbZf -----END PGP SIGNATURE----- --EvFqkQdx3DOGVAUt-- From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 25 01:04:30 2023 Received: (at 66128) by debbugs.gnu.org; 25 Sep 2023 05:04:30 +0000 Received: from localhost ([127.0.0.1]:43906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qkdll-0001B4-HB for submit@debbugs.gnu.org; Mon, 25 Sep 2023 01:04:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qkdlj-0001Ap-IV for 66128@debbugs.gnu.org; Mon, 25 Sep 2023 01:04:28 -0400 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 1qkdlR-0005eG-JO; Mon, 25 Sep 2023 01:04:09 -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=DNGyI18geGqD39ehQ+7fTW4jOXv7WdJqdInQifnGnjo=; b=CK2xcjBWzire IqTlVVyvRS4u52yBG2eyUJD+7eSr7uc9yAsvvxUBgLlrZa0AlN9ot6RpMtcw73kmvFox99+3mfbFO dHAyDEfEbipqPdQFgBEy+o8+1Juc056w+ume6bnLDr5TJGXLch9WCCg9sVWDgKOzKvsh/AS7ZbEOL 0IPuOCXtGI/JMCjX42Ghyp9gnbp1Zsq35kreoQdpMJzVhutNIsu/ARy7o2G7T19XNjyxVKafSBwuU UX7qMZLTts2x6ZBC353Se6mYiYaKbYW3L9zO+1ObWU5NYxCamLFpHREJiWqfieG7L75q6aWeA6KM9 uaFWDWX1H+9ooOA5Bs0KgA==; Date: Mon, 25 Sep 2023 08:03:38 +0300 Message-Id: <83edim3kut.fsf@gnu.org> From: Eli Zaretskii To: dickey@his.com In-Reply-To: (message from Thomas Dickey on Sun, 24 Sep 2023 20:07:03 -0400) Subject: Re: bug#66128: 28.2; visible-bell breaks setterm --inversescreen on References: <87zg1gk3eu.fsf@neko.mail-host-address-is-not-set> <83sf789l3w.fsf@gnu.org> <87h6nmvu61.fsf@neko.mail-host-address-is-not-set> <83cyy95tzm.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66128 Cc: 66128@debbugs.gnu.org, tom@logand.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Sun, 24 Sep 2023 20:07:03 -0400 > From: Thomas Dickey > Cc: Tomas Hlavaty , Thomas Dickey , > 66128@debbugs.gnu.org > > setterm doesn't have any special way of manipulating the terminal - > it uses the same escape sequences that emacs would > > > $ 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 > > https://github.com/util-linux/util-linux/blob/master/term-utils/setterm.c > > https://github.com/util-linux/util-linux/blob/1e0ad14b3ac08d855cda6de346a65f9b834e00db/term-utils/setterm.c#L1005 > > /* -inversescreen [on|off]. */ > if (ctl->opt_inversescreen) > fputs(ctl->opt_invsc_on ? "\033[?5h" : "\033[?5l", stdout); > > man console_codes > > ESC [ ? 5 h > DECSCNM (default off): Set reverse-video mode. > > but visual-bell can be the same thing > > The "vb" termcap capability is found with "man 5 terminfo" > > flash_screen flash vb visible bell (may > not move cursor) > > to be "flash" in terminfo, > and "infocmp linux" shows > > flash=\E[?5h$<200/>\E[?5l, > > which is to say, > turn reverse-video on > wait 200 milliseconds > turn reverse-video off Thanks. So Emacs should ideally reverse the sequence when the terminal is in the reverse-video mode, or at least send the "\033[?5h" sequence after sending "flash"? But can Emacs know that the terminal is in this mode at startup? From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 25 04:07:42 2023 Received: (at 66128) by debbugs.gnu.org; 25 Sep 2023 08:07:42 +0000 Received: from localhost ([127.0.0.1]:44069 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qkgd4-0006Ll-AO for submit@debbugs.gnu.org; Mon, 25 Sep 2023 04:07:42 -0400 Received: from smtp-1a.his.com ([216.194.253.2]:50886) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qkgcz-0006La-UL for 66128@debbugs.gnu.org; Mon, 25 Sep 2023 04:07:40 -0400 Received: from cuda501.his.com (cuda501.his.com [18.191.10.220]) by smtp-1a.his.com (Postfix) with ESMTPS id C83F0213 for <66128@debbugs.gnu.org>; Mon, 25 Sep 2023 04:07:24 -0400 (EDT) X-ASG-Debug-ID: 1695629243-1f26af277ddcfd0001-jgZTGW Received: from smtp-4a.his.com (smtp-4a.his.com [216.194.253.31]) by cuda501.his.com with ESMTP id if95ZLsHbeCKHtr8 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 25 Sep 2023 04:07:23 -0400 (EDT) X-Barracuda-Envelope-From: tom@invisible-island.net X-Barracuda-RBL-Trusted-Forwarder: 216.194.253.31 Received: from zproxy101.his.com (zproxy101.his.com [18.218.2.49]) by smtp-4a.his.com (Postfix) with ESMTPS id 5107D2F; Mon, 25 Sep 2023 04:07:23 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by zproxy101.his.com (Postfix) with ESMTP id 10F85178788; Mon, 25 Sep 2023 04:07:23 -0400 (EDT) X-Barracuda-RBL-Trusted-Forwarder: 18.218.2.49 Received: from zproxy101.his.com ([127.0.0.1]) by localhost (zproxy101.his.com [127.0.0.1]) (amavis, port 10032) with ESMTP id 6q1NqWzl-Byx; Mon, 25 Sep 2023 04:07:23 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by zproxy101.his.com (Postfix) with ESMTP id EC58017878D; Mon, 25 Sep 2023 04:07:22 -0400 (EDT) X-Virus-Scanned: amavis at zproxy101.his.com Received: from zproxy101.his.com ([127.0.0.1]) by localhost (zproxy101.his.com [127.0.0.1]) (amavis, port 10026) with ESMTP id uxWL3eqQY5pU; Mon, 25 Sep 2023 04:07:22 -0400 (EDT) Received: from prl-debianold-64.jexium-island.net (static-96-255-221-90.washdc.fios.verizon.net [96.255.221.90]) by zproxy101.his.com (Postfix) with ESMTPSA id D7AE2178788; Mon, 25 Sep 2023 04:07:22 -0400 (EDT) Received: from tom by prl-debianold-64.jexium-island.net with local (Exim 4.94.2) (envelope-from ) id 1qkgck-0001lK-BR; Mon, 25 Sep 2023 04:07:22 -0400 X-Barracuda-RBL-IP: 96.255.221.90 X-Barracuda-Effective-Source-IP: static-96-255-221-90.washdc.fios.verizon.net[96.255.221.90] X-Barracuda-Apparent-Source-IP: 96.255.221.90 Date: Mon, 25 Sep 2023 04:07:22 -0400 From: Thomas Dickey To: Eli Zaretskii Subject: Re: bug#66128: 28.2; visible-bell breaks setterm --inversescreen on Message-ID: X-ASG-Orig-Subj: Re: bug#66128: 28.2; visible-bell breaks setterm --inversescreen on References: <87zg1gk3eu.fsf@neko.mail-host-address-is-not-set> <83sf789l3w.fsf@gnu.org> <87h6nmvu61.fsf@neko.mail-host-address-is-not-set> <83cyy95tzm.fsf@gnu.org> <83edim3kut.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jAn2yZsFdeebdVpc" Content-Disposition: inline In-Reply-To: <83edim3kut.fsf@gnu.org> X-Barracuda-Connect: smtp-4a.his.com[216.194.253.31] X-Barracuda-Start-Time: 1695629243 X-Barracuda-Encrypted: TLS_AES_256_GCM_SHA384 X-Barracuda-URL: https://spam.his.com:443/cgi-mod/mark.cgi X-Barracuda-BRTS-Status: 1 X-Virus-Scanned: by bsmtpd at his.com X-Barracuda-Scan-Msg-Size: 602 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=5.0 KILL_LEVEL=7.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.114571 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 66128 Cc: 66128@debbugs.gnu.org, tom@logand.com, dickey@his.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: dickey@his.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) --jAn2yZsFdeebdVpc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 25, 2023 at 08:03:38AM +0300, Eli Zaretskii wrote: =2E.. > Thanks. So Emacs should ideally reverse the sequence when the > terminal is in the reverse-video mode, or at least send the "\033[?5h" > sequence after sending "flash"? But can Emacs know that the terminal > is in this mode at startup? I don't see how - the usual way (an escape sequence which returns this information) is not documented for Linux in console_codes. Lacking that, you'd rely upon the user to tell Emacs what to do. --=20 Thomas E. Dickey https://invisible-island.net --jAn2yZsFdeebdVpc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGYgtkt2kxADCLA1WzCr0RyFnvgMFAmURP7oACgkQzCr0RyFn vgNKxgwApE25Vx85laDn3tyHbErQ801PlNZKBasT75owTbvCpC6oDoIQ2m/fwL3S WOiO69ty+rX62pMJ0rGOM0NFpXwlQMFGQPaTetEHfcF/JW3hLN/qnrjAVB7qof7H Me5lqjkggchpnF/j0nESRu244cD2g+YgwxTadX7yjZ4kx4dG4ZIln4mDnJ1wA/pr VWbA4l0taP17ha5z8wZuZHgWoHkHjLbySkJOsxdAWv/+beGyLyIQ3fQcUptg4E4p G+0Q4NfCBWRV9AqbL+4up+kwHYiRWNQNTvtJOg9laz45oeNoSYtoHyG1k+Ob3nRo YpEnCElPLYrR+Ylj16TjahEBVA6Ti0Sy+Ye9GVffxl+yrQBCr1vldCunr9YVskpx /f0e3SgwVEIRwrCcU+rXkZkIm9jk60QoldAP4jdBtn8TAazWtYF6z4kxwLk+8cw/ oyPdmNP/ORiiCf7xckT6lRBRqUNm0urOOW3SlHXTxwR5mrryCyUCZI9X++Ycw/wR oYEhVu5B =N9sq -----END PGP SIGNATURE----- --jAn2yZsFdeebdVpc-- From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 25 04:51:31 2023 Received: (at 66128) by debbugs.gnu.org; 25 Sep 2023 08:51:31 +0000 Received: from localhost ([127.0.0.1]:44144 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qkhJS-0007Zi-KK for submit@debbugs.gnu.org; Mon, 25 Sep 2023 04:51:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51054) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qkhJQ-0007ZW-PC for 66128@debbugs.gnu.org; Mon, 25 Sep 2023 04:51:29 -0400 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 1qkhJ8-00016X-Jp; Mon, 25 Sep 2023 04:51:10 -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=WPzBMMzXSSBIJhdgbBaRkEd6xW//z7dMX05sIaqo2NE=; b=KgzlkO4FPfC7 kpv6ry5h4jgwfIGihD6oED7U3U9uP6B2Kz9TPmR80dVsg6GoCguMyQ5xeveIOpQ2a6IQLRvtfYYA8 XvStHZO/4e2bxrtEuGjGZdYOxLvFatQWUAeKFiim7h2w9811Fu8lZms3B7nDkR7Kp66aN+G8HlJH5 PUqXYGvvE8EmBE/+U0CZ/h53ykfhwXbVFZUHMBBEOrQcfxlBF2PGFd/RpOgZZ4nHbuZuRSeWbQicb Mv81jmfRjzzkAutrNyXVIkvgiQHuLv3QN+KHuapBPPRudMhB67QMzxIRS/Z0qLIYKkEq3d2t2p3G7 sEL09nEH1Sg0+b5Ow3eNJg==; Date: Mon, 25 Sep 2023 11:50:39 +0300 Message-Id: <835y3y3acg.fsf@gnu.org> From: Eli Zaretskii To: dickey@his.com In-Reply-To: (message from Thomas Dickey on Mon, 25 Sep 2023 04:07:22 -0400) Subject: Re: bug#66128: 28.2; visible-bell breaks setterm --inversescreen on References: <87zg1gk3eu.fsf@neko.mail-host-address-is-not-set> <83sf789l3w.fsf@gnu.org> <87h6nmvu61.fsf@neko.mail-host-address-is-not-set> <83cyy95tzm.fsf@gnu.org> <83edim3kut.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66128 Cc: 66128@debbugs.gnu.org, tom@logand.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Mon, 25 Sep 2023 04:07:22 -0400 > From: Thomas Dickey > Cc: dickey@his.com, tom@logand.com, 66128@debbugs.gnu.org > > On Mon, Sep 25, 2023 at 08:03:38AM +0300, Eli Zaretskii wrote: > ... > > Thanks. So Emacs should ideally reverse the sequence when the > > terminal is in the reverse-video mode, or at least send the "\033[?5h" > > sequence after sending "flash"? But can Emacs know that the terminal > > is in this mode at startup? > > I don't see how - the usual way (an escape sequence which returns this > information) is not documented for Linux in console_codes. > > Lacking that, you'd rely upon the user to tell Emacs what to do. I see. I guess we will need to ask such users to customize the inverse-video variable to a non-nil value, and then change tty_ring_bell accordingly. Thanks.