MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / NewLogViewer

Function NewLogViewer

internal/tui/log.go:42–48  ·  view source on GitHub ↗

NewLogViewer creates a new log viewer.

()

Source from the content-addressed store, hash-verified

40
41// NewLogViewer creates a new log viewer.
42func NewLogViewer() *LogViewer {
43 return &LogViewer{
44 entries: make([]LogEntry, 0),
45 scrollPos: 0,
46 autoScroll: true,
47 }
48}
49
50// AddEvent adds a loop event to the log.
51func (l *LogViewer) AddEvent(event loop.Event) {

Calls

no outgoing calls