appendLine queues a styled line for tea.Println on the next Update cycle, so the terminal, not us, owns the scrollback. scroll is a passive write-only transcript: never rendered, read only by tests and the debug log.
(s string)
| 33 | |
| 34 | // appendLine queues a styled line for tea.Println on the next Update cycle, |
| 35 | // so the terminal, not us, owns the scrollback. scroll is a passive |
| 36 | // transcript: never rendered, replayed by handleResizeSettle after a width |
| 37 | // change, and read by tests. |
| 38 | func (m *Model) appendLine(s string) { |
| 39 | m.scroll.WriteString(s + "\n") |
| 40 | m.outbox = append(m.outbox, s) |
| 41 | } |
no outgoing calls
no test coverage detected