MCPcopy Create free account
hub / github.com/codehamr/codehamr / appendLine

Method appendLine

internal/tui/render.go:35–38  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
38func (m *Model) appendLine(s string) {
39 m.scroll.WriteString(s + "\n")
40 m.outbox = append(m.outbox, s)
41}

Callers 13

submitMethod · 0.95
abortTurnMethod · 0.95
handleStreamClosedMethod · 0.95
dispatchNextToolMethod · 0.95
handleProbeMethod · 0.95
runSlashMethod · 0.95
cmdModelMethod · 0.95
printModelListMethod · 0.95
confirmActiveMethod · 0.95
cmdHamrpassMethod · 0.95
printHamrpassStatusMethod · 0.95
activateHamrpassMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected