mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 20:52:19 +00:00
Ignore failures to beep
This commit is contained in:
parent
91144a8b63
commit
41ffad8e5c
1 changed files with 5 additions and 2 deletions
|
|
@ -108,8 +108,11 @@ class Window:
|
|||
wakeup()
|
||||
|
||||
def bell(self):
|
||||
with open('/dev/tty', 'wb') as f:
|
||||
f.write(b'\007')
|
||||
try:
|
||||
with open('/dev/tty', 'wb') as f:
|
||||
f.write(b'\007')
|
||||
except EnvironmentError:
|
||||
pass # failure to beep is not critical
|
||||
if self.opts.visual_bell_duration > 0:
|
||||
self.start_visual_bell_at = monotonic()
|
||||
glfw_post_empty_event()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue