diff --git a/README.md b/README.md index 9cbf129..7f6ba5f 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ > Coin tracking for hackers +[![License](http://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/miguelmota/cointop/master/LICENSE.md) [![Go Report Card](https://goreportcard.com/badge/github.com/miguelmota/cointop?)](https://goreportcard.com/report/github.com/miguelmota/cointop) [![GoDoc](https://godoc.org/github.com/miguelmota/cointop?status.svg)](https://godoc.org/github.com/miguelmota/cointop) + + + ## Install Make sure to have [golang](https://golang.org/) installed, then do: diff --git a/assets/screenshot.gif b/assets/screenshot.gif new file mode 100644 index 0000000..25df668 Binary files /dev/null and b/assets/screenshot.gif differ diff --git a/cointop.go b/cointop.go index 676b395..98d6dc7 100644 --- a/cointop.go +++ b/cointop.go @@ -250,16 +250,18 @@ func (ct *Cointop) sort(sortby string, desc bool) func(g *gocui.Gui, v *gocui.Vi ct.setTable() return nil }) - g.Update(func(g *gocui.Gui) error { - ct.chartview.Clear() - maxX, _ := g.Size() - _, cy := ct.chartview.Cursor() - coin := "ethereum" - ct.chartPoints(maxX, coin) - ct.setChart() - fmt.Fprint(v, cy) - return nil - }) + /* + g.Update(func(g *gocui.Gui) error { + ct.chartview.Clear() + maxX, _ := g.Size() + _, cy := ct.chartview.Cursor() + coin := "ethereum" + ct.chartPoints(maxX, coin) + ct.setChart() + fmt.Fprint(ct.chartview, cy) + return nil + }) + */ return nil }