diff --git a/README.md b/README.md index 001ddc9..f3571f0 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ `termui` is a cross-platform, easy-to-compile, and fully-customizable terminal dashboard. It is inspired by [blessed-contrib](https://github.com/yaronn/blessed-contrib), but purely in Go. -Now version v2 has arrived! It brings new event system, new theme system, new `Buffer` interface and specific colour text rendering. +Now version v2 has arrived! It brings new event system, new theme system, new `Buffer` interface and specific colour text rendering. (some docs are missing, but it will be completed soon!) ## Installation diff --git a/_example/barchart.go b/_example/barchart.go index 9f7784e..30993d3 100644 --- a/_example/barchart.go +++ b/_example/barchart.go @@ -9,7 +9,7 @@ package main import "github.com/gizak/termui" func main() { - if termui.Init() != nil { + if err := termui.Init(); err != nil { panic(err) } defer termui.Close() diff --git a/_example/barchart.png b/_example/barchart.png index a37912f..4c5f1ca 100644 Binary files a/_example/barchart.png and b/_example/barchart.png differ diff --git a/_example/dashboard.gif b/_example/dashboard.gif index 8e1859c..4bab470 100644 Binary files a/_example/dashboard.gif and b/_example/dashboard.gif differ diff --git a/_example/gauge.go b/_example/gauge.go index 2b3d3c4..ce2c22f 100644 --- a/_example/gauge.go +++ b/_example/gauge.go @@ -68,7 +68,7 @@ func main() { g4.Width = 50 g4.Height = 3 g4.Y = 14 - g4.Border.Label = "Gauge" + g4.BorderLabel = "Gauge" g4.Label = "Gauge with custom highlighted label" g4.PercentColor = termui.ColorYellow g4.BarColor = termui.ColorGreen diff --git a/_example/gauge.png b/_example/gauge.png index f7db47c..4009243 100644 Binary files a/_example/gauge.png and b/_example/gauge.png differ diff --git a/_example/linechart.png b/_example/linechart.png index 655ef43..24f3c97 100644 Binary files a/_example/linechart.png and b/_example/linechart.png differ diff --git a/_example/list.png b/_example/list.png index 8ca08c0..7c5e27c 100644 Binary files a/_example/list.png and b/_example/list.png differ diff --git a/_example/mbarchart.png b/_example/mbarchart.png index 9a42526..e51337e 100644 Binary files a/_example/mbarchart.png and b/_example/mbarchart.png differ diff --git a/_example/par.png b/_example/par.png index a85e644..b71fa7c 100644 Binary files a/_example/par.png and b/_example/par.png differ diff --git a/_example/sparklines.png b/_example/sparklines.png index 9dd7c82..dd5641b 100644 Binary files a/_example/sparklines.png and b/_example/sparklines.png differ