summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2022-06-29 18:12:32 +0300
committerdelthas <delthas@dille.cc>2022-08-01 02:54:30 +0200
commite8ed8e7e13134ee7fc8ac116d58efc55813632a1 (patch)
tree672ff545386a4b9cd2c0bc0516d7362e6242f62d /ui
parentAdd support for hex colors (diff)
Add a config option to beep on highlight
This will allow to bring user attention when you are getting highlighted.
Diffstat (limited to 'ui')
-rw-r--r--ui/ui.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/ui.go b/ui/ui.go
index 7ae13e2..4866969 100644
--- a/ui/ui.go
+++ b/ui/ui.go
@@ -421,6 +421,10 @@ func (ui *UI) Size() (int, int) {
return ui.screen.Size()
}
+func (ui *UI) Beep() {
+ ui.screen.Beep()
+}
+
func (ui *UI) Draw(members []irc.Member) {
w, h := ui.screen.Size()