TailCheck does tail update check -- returns true if updated
()
| 278 | |
| 279 | // TailCheck does tail update check -- returns true if updated |
| 280 | func (tm *Term) TailCheck() bool { |
| 281 | if !tm.Tail { |
| 282 | return false |
| 283 | } |
| 284 | tm.Mu.Lock() |
| 285 | update := TheFiles.CheckUpdates() |
| 286 | tm.Mu.Unlock() |
| 287 | if !update { |
| 288 | return false |
| 289 | } |
| 290 | tm.Draw() |
| 291 | return true |
| 292 | } |
| 293 | |
| 294 | // DrawFile draws one file, starting at given y offset |
| 295 | func (tm *Term) DrawFile(fl *File, sty int) { |
no test coverage detected