diff options
author | Markus Ongyerth <aerc@ongy.net> | 2018-06-01 09:58:00 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-06-01 16:04:43 -0700 |
commit | 80e891a8024ac10a60daa790131e04f0326b0c73 (patch) | |
tree | 7a07cc26b2885e43e57e1672d2895c7fae2b173e /lib/ui/stack.go | |
parent | 3836d240c9aa26615e7d768a57436d171edc3831 (diff) | |
download | aerc-80e891a8024ac10a60daa790131e04f0326b0c73.tar.gz |
switch to tcell from termbox
This is a simple mostly straight forward switch to tcell in favor of termbox. It uses the tcell native api (not the compat layer) but does not make use of most features. Further changes should include moving to tcell's views.TextArea and the general built in widget behaviour instead of the current ad hoc implementation. Regression: Cursor isn't shown in ex-line
Diffstat (limited to 'lib/ui/stack.go')
-rw-r--r-- | lib/ui/stack.go | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/ui/stack.go b/lib/ui/stack.go index 9f81db8..3c66f5a 100644 --- a/lib/ui/stack.go +++ b/lib/ui/stack.go @@ -3,7 +3,7 @@ package ui import ( "fmt" - tb "github.com/nsf/termbox-go" + "github.com/gdamore/tcell" ) type Stack struct { @@ -29,12 +29,7 @@ func (stack *Stack) Draw(ctx *Context) { if len(stack.children) > 0 { stack.Peek().Draw(ctx) } else { - cell := tb.Cell{ - Fg: tb.ColorDefault, - Bg: tb.ColorDefault, - Ch: ' ', - } - ctx.Fill(0, 0, ctx.Width(), ctx.Height(), cell) + ctx.Fill(0, 0, ctx.Width(), ctx.Height(), ' ', tcell.StyleDefault) } } |