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:
parent
0cc970bd07
commit
f1d7d864ae
4 changed files with 46 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue