all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Tomas Hlavaty <tom@logand.com>, Thomas Dickey <dickey@his.com>
Cc: 66128@debbugs.gnu.org
Subject: bug#66128: 28.2; visible-bell breaks setterm --inversescreen on
Date: Sat, 23 Sep 2023 08:38:53 +0300	[thread overview]
Message-ID: <83cyy95tzm.fsf@gnu.org> (raw)
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)

> From: Tomas Hlavaty <tom@logand.com>
> Cc: 66128@debbugs.gnu.org
> Date: Fri, 22 Sep 2023 22:18:14 +0200
> 
> On Thu 21 Sep 2023 at 08:00, Eli Zaretskii <eliz@gnu.org> 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.





  reply	other threads:[~2023-09-23  5:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-20 20:14 bug#66128: 28.2; visible-bell breaks setterm --inversescreen on tom
2023-09-21  5:00 ` Eli Zaretskii
2023-09-22 20:18   ` Tomas Hlavaty
2023-09-23  5:38     ` Eli Zaretskii [this message]
2023-09-25  0:07       ` Thomas Dickey
2023-09-25  5:03         ` Eli Zaretskii
2023-09-25  8:07           ` Thomas Dickey
2023-09-25  8:50             ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83cyy95tzm.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=66128@debbugs.gnu.org \
    --cc=dickey@his.com \
    --cc=tom@logand.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.