summaryrefslogtreecommitdiff
path: root/client/empty_window.go
diff options
context:
space:
mode:
authorcitrons <citrons@mondecitronne.com>2025-06-01 15:38:17 -0500
committercitrons <citrons@mondecitronne.com>2025-06-01 15:38:17 -0500
commite2dc5b6fbb6adf6f379ef0123c214a196211c305 (patch)
treecc976665dd2e0916af100b5c0f7f629cc1936b01 /client/empty_window.go
parente740e5478a43358fbbd79636483d000e01f88b7e (diff)
joining channels
Diffstat (limited to 'client/empty_window.go')
-rw-r--r--client/empty_window.go29
1 files changed, 29 insertions, 0 deletions
diff --git a/client/empty_window.go b/client/empty_window.go
new file mode 100644
index 0000000..e40ab96
--- /dev/null
+++ b/client/empty_window.go
@@ -0,0 +1,29 @@
+package main
+
+import (
+ "citrons.xyz/talk/client/window"
+ "citrons.xyz/talk/client/buffer"
+ "citrons.xyz/talk/tui"
+)
+
+type emptyWindow struct {
+ location window.Location
+}
+
+func (w emptyWindow) Location() window.Location {
+ return w.location
+}
+
+func (w emptyWindow) Kill() {}
+
+func (w emptyWindow) Buffer() *buffer.Buffer {
+ return &buffer.Buffer {}
+}
+
+func (w emptyWindow) Input() *tui.TextInput {
+ return &tui.TextInput {}
+}
+
+func (w emptyWindow) Send(text string) {}
+
+func (w emptyWindow) ShowStatusLine() {}