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) {