summaryrefslogtreecommitdiff
path: root/client/ui.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/ui.go')
-rw-r--r--client/ui.go20
1 files changed, 18 insertions, 2 deletions
diff --git a/client/ui.go b/client/ui.go
index 2fc71f6..37b7d4e 100644
--- a/client/ui.go
+++ b/client/ui.go
@@ -65,13 +65,29 @@ func (a *application) show() {
})
a.getWin().Buffer().Show("buffer")
- tui.Push("status", tui.Box {
- Width: tui.Fill, Height: tui.BoxSize(1), Dir: tui.Right,
+ tui.Push("input border", tui.Box {
+ Width: tui.Fill, Height: 1, Dir: tui.Left,
Style: &tui.Style {Bg: tui.White, Fg: tui.Black},
})
+
+ if a.getWin().Buffer().ScrollPos() > 0 {
+ tui.Push("", tui.Box {Width: tui.TextSize, Height: 1, NoWrap: true})
+ if a.getWin().Buffer().AtTop() {
+ tui.Text("[TOP]", nil)
+ } else {
+ tui.Text("[MORE]", nil)
+ }
+ tui.Pop()
+ }
+ tui.Push("", tui.Box {Width: tui.Fill, Height: 1})
+ tui.Pop()
+
+ tui.Push("status", tui.Box {Width: tui.TextSize, Height: 1, NoWrap: true})
a.getWin().ShowStatusLine()
tui.Pop()
+ tui.Pop()
+
tui.Push("input container", tui.Box {
Width: tui.Fill, Height: tui.Children, Dir: tui.Right,
})