1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:27:43 +00:00

LibVT+Terminal: Add the option to disable the bell

This commit is contained in:
Alex McGrath 2020-12-19 21:47:45 +00:00 committed by Andreas Kling
parent 0cc970bd07
commit f1d7d864ae
4 changed files with 46 additions and 10 deletions

View file

@ -812,7 +812,10 @@ void TerminalWidget::terminal_did_resize(u16 columns, u16 rows)
void TerminalWidget::beep()
{
if (m_should_beep) {
if (m_bell_mode == BellMode::Disabled) {
return;
}
if (m_bell_mode == BellMode::AudibleBeep) {
sysbeep();
return;
}