add methods to mockscreen
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
David 2023-12-24 15:05:11 -05:00
parent 138a4a62c1
commit 878635450c
1 changed files with 10 additions and 0 deletions

View File

@ -82,6 +82,10 @@ func (m *MockScreen) EnablePaste() {}
func (m *MockScreen) DisablePaste() {}
func (m *MockScreen) EnableFocus() {}
func (m *MockScreen) DisableFocus() {}
func (m *MockScreen) HasMouse() bool {
return false
}
@ -122,6 +126,12 @@ func (m *MockScreen) Beep() error {
return nil
}
func (m *MockScreen) LockRegion(x, y, width, height int, lock bool) {}
func (m *MockScreen) Tty() (tcell.Tty, bool) {
return nil, false
}
func (m *MockScreen) DumpContents() string {
var res string
for i := m.y; i < m.h; i++ {