From fa89b4d0ad972e3579c9afc1d92566a8ac5ff43b Mon Sep 17 00:00:00 2001 From: Miguel Mota Date: Fri, 30 Mar 2018 11:42:09 -0700 Subject: [PATCH] screenshot Former-commit-id: 3187d6708e37bc0bd0ac1cf25812c9f707bac2d0 [formerly 623c0be61232d5b964cf301e87e343cda88fd758] Former-commit-id: 2eecf5d866147a2ee55fea3071c4281b1d36eba1 --- README.md | 4 ++++ assets/screenshot.gif.REMOVED.git-id | 1 + cointop.go | 22 ++++++++++++---------- 3 files changed, 17 insertions(+), 10 deletions(-) create mode 100644 assets/screenshot.gif.REMOVED.git-id 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.REMOVED.git-id b/assets/screenshot.gif.REMOVED.git-id new file mode 100644 index 0000000..f1e14e0 --- /dev/null +++ b/assets/screenshot.gif.REMOVED.git-id @@ -0,0 +1 @@ +25df6680c43decb4b0c347ee171f02f8c498725e \ No newline at end of file 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 }