mirror of
https://github.com/wagoodman/dive
synced 2026-03-14 22:35:50 +01:00
16 lines
299 B
Go
16 lines
299 B
Go
package controller
|
|
|
|
import (
|
|
"github.com/jroimartin/gocui"
|
|
)
|
|
|
|
// Controller defines the a renderable terminal screen pane.
|
|
type Controller interface {
|
|
Update() error
|
|
Render() error
|
|
Setup(*gocui.View, *gocui.View) error
|
|
CursorDown() error
|
|
CursorUp() error
|
|
KeyHelp() string
|
|
IsVisible() bool
|
|
}
|