implement beeps for Windows

refs: #3
This commit is contained in:
Wez Furlong committed 2021-09-26 13:50:57 -07:00
1 parent aefbab5a9d
commit 70ab5e7712
2 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -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
+6
View File
@@ -70,6 +70,12 @@ impl ConnectionOps for Connection {
}
}
}
fn beep(&self) {
unsafe {
MessageBeep(MB_OK);
}
}
}
impl Connection {