diff options
Diffstat (limited to 'client/empty_window.go')
| -rw-r--r-- | client/empty_window.go | 29 |
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() {} |
