summaryrefslogtreecommitdiffstats
path: root/src/tui/tui.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/tui/tui.go')
-rw-r--r--src/tui/tui.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tui/tui.go b/src/tui/tui.go
index 4625e9b5..69ae8a1a 100644
--- a/src/tui/tui.go
+++ b/src/tui/tui.go
@@ -473,6 +473,13 @@ func MakeTransparentBorder() BorderStyle {
bottomRight: ' '}
}
+type termSize struct {
+ Lines int
+ Columns int
+ Width int
+ Height int
+}
+
type Renderer interface {
Init()
Resize(maxHeightFunc func(int) int)
@@ -490,6 +497,8 @@ type Renderer interface {
MaxX() int
MaxY() int
+ Size() (termSize, error)
+
NewWindow(top int, left int, width int, height int, preview bool, borderStyle BorderStyle) Window
}
@@ -499,6 +508,7 @@ type Window interface {
Width() int
Height() int
+ DrawBorder()
DrawHBorder()
Refresh()
FinishFill()