'visualbell' seems not to work in the GTK3 GUI

19 views
Skip to first unread message

Tony Mechelynck

unread,
May 17, 2020, 9:11:11 AM5/17/20
to vim_dev
gvim 8.2.773 (Big) with GTK3 GUI
:echo exists('+errorbells') exists('+visualbell') answers 1 1
My vimrc includes the following:
if exists('+errorbells') && exists('+visualbell')
set errorbells visualbell
if has('gui_running')
au GUIEnter * set t_vb= ^[\|250f
endif
endif

(in the autocmmand, the ^[ is a real Esc) and when I ask :verbose set
vb? t_vb? in the GUI the answer is

visualbell
Last set from ~/.vimrc line 437
t_vb=^[|250f
Last set from ~/.vimrc line 439

with the ^[ in blue and the rest in black
and yet, when I hit Esc in Normal mode in the GUI, nothing happens. No
sound, no temporary inversion of the background.

If I comment away the autocommand, t_vb is et at is defaut i.e ^[|f
but I still don't see any visualbell

Oh, and BTW 'belloff' is at its default (empty).

With the same vimrc and the same executable but invoked as "vim" in an
xterm, I see
t_vb=^[[?5h$<100/>^[[?5l

and there is a faint but discernible visualbell. In a konsole, t_vb
has the same value as in xterm and the visualbell is much more
visible.

Best regards,
Tony.

Ken Takata

unread,
May 17, 2020, 9:42:54 AM5/17/20
to vim_dev
Hi Tony,

Tony Mechelynck

unread,
May 17, 2020, 11:12:40 AM5/17/20
to vim_dev
On Sun, May 17, 2020 at 3:42 PM Ken Takata <ktakat...@gmail.com> wrote:
>
> Hi Tony,
> gui_mch_flash() is not implemented for GTK3:
> https://github.com/vim/vim/blob/ed37d9b3241abe7c302c7ac606df80037aecdb46/src/gui_gtk_x11.c#L5941-L5943
>
> Regards,
> Ken Takata
>
Hm. There is a
// TODO Replace GdkGC with Cairo
on that non-implementation, which seems to mean it is not totally
impossible. (Not that I would know how.) and for some reason the sound
on this PC is flaky, so IIUC, now that GTK2 gives me "deprecated"
warnings in every module, if I want a visual bell I'll have to compile
with -disable-gtk2-check --disable-gtk3-check.

Well, thanks for the pointer anyway.

Best regards,
Tony.

Tony Mechelynck

unread,
May 17, 2020, 12:44:45 PM5/17/20
to vim_dev
Ah la la. For some reason in Motif, :set gfn=* gives me only 3 choices, and even
set guifont=-*-lucidatypewriter-medium-r-normal-*-*-80-*-*-m-*-*
is ugly. I'm going back to GTK3. :-/

Best regards,
Tony.
Reply all
Reply to author
Forward
0 new messages