blob: e40ab963aaf70a26b74365bb95139694310041e9 (
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
|
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() {}
|