From e185593334611bb7cedd5ff8d3df6657d7dbc1f6 Mon Sep 17 00:00:00 2001 From: Caleb Bassi Date: Fri, 13 Apr 2018 22:17:57 -0700 Subject: [PATCH] Code cleanup --- README.md | 3 ++- colorschemes/template.go | 4 +--- main.go | 3 --- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 6109abe..681fc26 100644 --- a/README.md +++ b/README.md @@ -85,10 +85,11 @@ Feel free to add a new one. You can use 256 colors, bold, underline, and reverse ## Built With -* [cjbassi/termui](https://github.com/cjbassi/termui) +* [A termui fork](https://github.com/cjbassi/termui) * [drawille-go](https://github.com/exrook/drawille-go) * [gopsutil](https://github.com/shirou/gopsutil) * [goreleaser](https://github.com/goreleaser/goreleaser) +* [termbox](https://github.com/nsf/termbox-go) ## Stargazers over time diff --git a/colorschemes/template.go b/colorschemes/template.go index f5a84bb..cee067e 100644 --- a/colorschemes/template.go +++ b/colorschemes/template.go @@ -8,11 +8,9 @@ package colorschemes You can combine a color with 'Bold', 'Underline', or 'Reverse' by using bitwise OR ('|') and the name of the attribute. For example, to get Bold red Labels, you would do 'Labels: 2 | Bold'. - Once you've created a colorscheme, add an entry for it in the `handleColorscheme` function - in `gotop.go`. + Once you've created a colorscheme, add an entry for it in the `handleColorscheme` function in `gotop.go`. */ -// Ignore this const ( Bold int = 1 << (iota + 9) Underline diff --git a/main.go b/main.go index c1a95d0..ebc0cd3 100644 --- a/main.go +++ b/main.go @@ -250,9 +250,6 @@ func main() { ui.Body.Width, ui.Body.Height = e.Width, e.Height ui.Body.Resize() - help.XOffset = (ui.Body.Width - help.X) / 2 - help.YOffset = (ui.Body.Height - help.Y) / 2 - termResized <- true })