summaryrefslogtreecommitdiff
path: root/client/empty_window.go
blob: 690049c0b23f0fac845aa95fe2bfe6dc00ee0709 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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() {}

func (w emptyWindow) ShowComposingReply() {}