New creates an empty transcript. The session state is consulted by the tool views for rendering preferences; embedders without one should pass a service.StaticSessionState.
(state service.SessionStateReader)
| 42 | // tool views for rendering preferences; embedders without one should pass |
| 43 | // a service.StaticSessionState. |
| 44 | func New(state service.SessionStateReader) *Transcript { |
| 45 | return &Transcript{state: state, width: 80} |
| 46 | } |
| 47 | |
| 48 | // Append adds a message and returns the new view's Init command (spinner |
| 49 | // and running-tool views use it to start the animation tick stream). |
no outgoing calls