diff --git a/README.md b/README.md
index 19deab2..35edae7 100644
--- a/README.md
+++ b/README.md
@@ -359,6 +359,10 @@ Action|Description
- A: Press ? to toggle the help menu. Press q to close help menu.
+- Q: I'm getting the error: `new gocui: termbox: error while reading terminfo data: EOF` when trying to run.
+
+ - A: Try setting the environment variable `TERM=screen-256color`
+
## Development
### Snap
diff --git a/cointop.rb b/cointop.rb
index 7e72836..7206fc0 100644
--- a/cointop.rb
+++ b/cointop.rb
@@ -1,8 +1,8 @@
class Cointop < Formula
desc "Interactive terminal based UI application for tracking cryptocurrencies"
homepage "https://cointop.sh"
- url "https://github.com/miguelmota/cointop/archive/1.0.0.tar.gz"
- sha256 "8ff6988cd18b35dbf85436add19135a587e03702b43744f563f137bb067f6e04"
+ url "https://github.com/miguelmota/cointop/archive/1.0.1.tar.gz"
+ sha256 "bb5450c734a2d0c54a1dc7d7f42be85eb2163c03e6d3dc1782d74b54a8cbfa69"
depends_on "go" => :build
@@ -16,6 +16,6 @@ class Cointop < Formula
end
test do
- system bin"/cointop", "-test"
+ system "TERM=screen-256color #{bin}/cointop -test"
end
end
diff --git a/main.go b/main.go
index f861399..5823b93 100644
--- a/main.go
+++ b/main.go
@@ -3,11 +3,12 @@ package main
import (
"flag"
"fmt"
+ "time"
"github.com/miguelmota/cointop/cointop"
)
-var version = "1.0.0"
+var version = "1.0.1"
func main() {
var ver bool
@@ -28,6 +29,9 @@ func main() {
}
func runTest() {
- // TODO
- fmt.Println("ok")
+ go func() {
+ cointop.Run()
+ }()
+ time.Sleep(1 * time.Second)
+ cointop.Exit()
}
diff --git a/pkg/termui/doc.go b/pkg/termui/doc.go
deleted file mode 100644
index 13924eb..0000000
--- a/pkg/termui/doc.go
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright 2017 Zack Guo . All rights reserved.
-// Use of this source code is governed by a MIT license that can
-// be found in the LICENSE file.
-
-/*
-Package termui is a library designed for creating command line UI. For more info, goto http://github.com/gizak/termui
-
-A simplest example:
- package main
-
- import ui "github.com/gizak/termui"
-
- func main() {
- if err:=ui.Init(); err != nil {
- panic(err)
- }
- defer ui.Close()
-
- g := ui.NewGauge()
- g.Percent = 50
- g.Width = 50
- g.BorderLabel = "Gauge"
-
- ui.Render(g)
-
- ui.Loop()
- }
-*/
-package termui