Skip to content

Commit

Permalink
implement beeps for Windows
Browse files Browse the repository at this point in the history
refs: #3
  • Loading branch information
wez committed Sep 26, 2021
1 parent aefbab5 commit 70ab5e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/config/lua/config/audible_bell.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ that wezterm makes when the bell rings.

The follow are possible values:

* `"SystemBeep"` - perform the system beep or alert sound. This is the default. On some systems, it may not produce a beep sound.
* `"SystemBeep"` - perform the system beep or alert sound. This is the default. On Wayland systems, which have no system beep function, it does not produce a sound.
* `"Disabled"` - don't make a sound


Expand Down
6 changes: 6 additions & 0 deletions window/src/os/windows/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ impl ConnectionOps for Connection {
}
}
}

fn beep(&self) {
unsafe {
MessageBeep(MB_OK);
}
}
}

impl Connection {
Expand Down

0 comments on commit 70ab5e7

Please sign in to comment.