(text string)
| 606 | } |
| 607 | |
| 608 | func (b *FullscreenRendererBackend) AppendTranscript(text string) { |
| 609 | safe := strings.ToValidUTF8(text, "\uFFFD") |
| 610 | b.TranscriptChunks = append(b.TranscriptChunks, safe) |
| 611 | b.TranscriptTextCache = strings.Join(b.TranscriptChunks, "") |
| 612 | b.renderedTranscriptBlocks = nil |
| 613 | b.scrollTranscriptToBottom() |
| 614 | b.refreshControls() |
| 615 | } |
| 616 | |
| 617 | func (b *FullscreenRendererBackend) refreshFromFrame(frame RenderFrame) { |
| 618 | b.syncTranscriptFromFrame(frame) |