Function
entryWriter
(input: {
commit: StreamCommit
body?: RunEntryBody
theme?: RunTheme
opts?: ScrollbackOptions
})
Source from the content-addressed store, hash-verified
| 300 | } |
| 301 | |
| 302 | export function entryWriter(input: { |
| 303 | commit: StreamCommit |
| 304 | body?: RunEntryBody |
| 305 | theme?: RunTheme |
| 306 | opts?: ScrollbackOptions |
| 307 | }): ScrollbackWriter { |
| 308 | return createScrollbackWriter( |
| 309 | (ctx) => ( |
| 310 | <RunEntryContent |
| 311 | commit={input.commit} |
| 312 | body={input.body} |
| 313 | theme={input.theme} |
| 314 | opts={{ ...input.opts, suppressBackgrounds: true }} |
| 315 | width={ctx.width} |
| 316 | /> |
| 317 | ), |
| 318 | entryFlags(input.commit), |
| 319 | ) |
| 320 | } |
| 321 | |
| 322 | export function spacerWriter(): ScrollbackWriter { |
| 323 | return (ctx: ScrollbackRenderContext) => ({ |
Tested by
no test coverage detected