2
0

2 Ревизии 0255734665 ... 42306062a4

Автор SHA1 Съобщение Дата
  blackwine 42306062a4 becoming a party pig преди 3 седмици
  blackwine 0255734665 becoming a party pig преди 3 седмици
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      bar.go

+ 3 - 2
bar.go

@@ -14,7 +14,7 @@ import (
 	"github.com/hypebeast/go-osc/osc"
 )
 
-// Your basic bar object
+// Your basic screenbar
 type ScreenBar struct {
 	title        string
 	ticks        int
@@ -29,13 +29,14 @@ func (bar *ScreenBar) tick() {
 	bar.update()
 }
 
+// Ticker's gonna need to be reset sometimes
 func (bar *ScreenBar) reset(msg *osc.Message) {
 	bar.ticks = 0
 	bar.ticker.Reset(time.Second)
 	bar.update()
 }
 
-// Paint a screen by drawing  bar
+// (Re)paint a screen by drawing bar
 func (bar *ScreenBar) update() {
 	// Config size if in terminal
 	if term.IsTerminal(0) {