add multi-line scrolling support, timestamps to error view

This commit is contained in:
Bradley Cicenas
2019-05-22 17:38:01 +00:00
parent 98fcfe8b6f
commit 0a5a4c9062
3 changed files with 35 additions and 12 deletions

View File

@@ -12,7 +12,8 @@ func ShowConnError(err error) (exit bool) {
defer ui.DefaultEvtStream.ResetHandlers()
setErr := func(err error) {
errView.Text = err.Error()
errView.Append(err.Error())
errView.Append("attempting to reconnect...")
ui.Render(errView)
}
@@ -21,7 +22,7 @@ func ShowConnError(err error) (exit bool) {
ui.StopLoop()
})
ui.Handle("/timer/1s", func(ui.Event) {
ui.Handle("/timer/2s", func(ui.Event) {
_, err := cursor.RefreshContainers()
if err == nil {
ui.StopLoop()