diff options
Diffstat (limited to 'client/window')
| -rw-r--r-- | client/window/window.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/client/window/window.go b/client/window/window.go index ba72026..014bb7a 100644 --- a/client/window/window.go +++ b/client/window/window.go @@ -47,3 +47,26 @@ func (wc *WindowCache) Evict(l Location) { func (wc *WindowCache) Get(l Location) Window { return wc.windows[l] } + +type DefaultWindow struct { + In tui.TextInput + Buf buffer.Buffer +} + +func (dw *DefaultWindow) Location() Location { + return nil +} + +func (w *DefaultWindow) Buffer() *buffer.Buffer { + return &w.Buf +} + +func (dw *DefaultWindow) Kill() {} + +func (w *DefaultWindow) Input() *tui.TextInput { + return &w.In +} + +func (w *DefaultWindow) Send(text string) {} + +func (w *DefaultWindow) ShowStatusLine() {} |
