summaryrefslogtreecommitdiff
path: root/ui/ui.go
diff options
context:
space:
mode:
authordelthas <delthas@dille.cc>2022-03-29 19:23:36 +0200
committerdelthas <delthas@dille.cc>2022-04-12 18:01:39 +0200
commit7a86dff763bff9dcf1ddb14a5db4bd590c13af4a (patch)
tree8b1ab4534297f959c3611bca376e36322211d49d /ui/ui.go
parentAdd a 15s keepalive to connections (diff)
Implement SEARCH
Also refactor ui/ to support overlays, temporary anonmyous buffers. See: https://github.com/emersion/soju/pull/39
Diffstat (limited to 'ui/ui.go')
-rw-r--r--ui/ui.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/ui/ui.go b/ui/ui.go
index 077f599..bbdc425 100644
--- a/ui/ui.go
+++ b/ui/ui.go
@@ -192,6 +192,18 @@ func (ui *UI) IsAtTop() bool {
return ui.bs.IsAtTop()
}
+func (ui *UI) OpenOverlay() {
+ ui.bs.OpenOverlay()
+}
+
+func (ui *UI) CloseOverlay() {
+ ui.bs.CloseOverlay()
+}
+
+func (ui *UI) HasOverlay() bool {
+ return ui.bs.HasOverlay()
+}
+
func (ui *UI) AddBuffer(netID, netName, title string) (i int, added bool) {
return ui.bs.Add(netID, netName, title)
}