comparison src/terminal.c @ 28439:16bd027b039e v8.2.4744

patch 8.2.4744: a terminal window can't use the bell Commit: https://github.com/vim/vim/commit/77771d33f44bfb9f75eb857bd2f2bb4c2860cac3 Author: LemonBoy <thatlemon@gmail.com> Date: Wed Apr 13 11:47:25 2022 +0100 patch 8.2.4744: a terminal window can't use the bell Problem: A terminal window can't use the bell. Solution: Add bell support for the terminal window. (closes https://github.com/vim/vim/issues/10178)
author Bram Moolenaar <Bram@vim.org>
date Wed, 13 Apr 2022 13:00:06 +0200
parents d1702731786c
children f4d2dcfd18ac
comparison
equal deleted inserted replaced
28438:04a92ed295c3 28439:16bd027b039e
3383 3383
3384 ga_clear(&term->tl_scrollback_postponed); 3384 ga_clear(&term->tl_scrollback_postponed);
3385 limit_scrollback(term, &term->tl_scrollback, TRUE); 3385 limit_scrollback(term, &term->tl_scrollback, TRUE);
3386 } 3386 }
3387 3387
3388 /*
3389 * Called when the terminal wants to ring the system bell.
3390 */
3391 static int
3392 handle_bell(void *user UNUSED)
3393 {
3394 vim_beep(BO_SH);
3395 return 0;
3396 }
3397
3388 static VTermScreenCallbacks screen_callbacks = { 3398 static VTermScreenCallbacks screen_callbacks = {
3389 handle_damage, // damage 3399 handle_damage, // damage
3390 handle_moverect, // moverect 3400 handle_moverect, // moverect
3391 handle_movecursor, // movecursor 3401 handle_movecursor, // movecursor
3392 handle_settermprop, // settermprop 3402 handle_settermprop, // settermprop
3393 NULL, // bell 3403 handle_bell, // bell
3394 handle_resize, // resize 3404 handle_resize, // resize
3395 handle_pushline, // sb_pushline 3405 handle_pushline, // sb_pushline
3396 NULL // sb_popline 3406 NULL // sb_popline
3397 }; 3407 };
3398 3408