From e2dc5b6fbb6adf6f379ef0123c214a196211c305 Mon Sep 17 00:00:00 2001 From: citrons Date: Sun, 1 Jun 2025 15:38:17 -0500 Subject: joining channels --- client/empty_window.go | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 client/empty_window.go (limited to 'client/empty_window.go') 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() {} -- cgit v1.2.3