()
| 174 | } |
| 175 | |
| 176 | func (s *ScreenControl) Run() { |
| 177 | for { |
| 178 | select { |
| 179 | case <-s.quit: |
| 180 | log.Println("Stopping screen control") |
| 181 | return |
| 182 | default: |
| 183 | <-s.clock |
| 184 | s.Update() |
| 185 | s.outputChan <- &s.output |
| 186 | } |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | func (s *ScreenControl) Update() { |
| 191 | widthInBytes := uint16(30) // 30 * 8 = 240 |