MCPcopy
hub / github.com/mum4k/termdash / Terminal

Struct Terminal

private/faketerm/faketerm.go:57–66  ·  view source on GitHub ↗

Terminal is a fake terminal. This implementation is thread-safe.

Source from the content-addressed store, hash-verified

55// Terminal is a fake terminal.
56// This implementation is thread-safe.
57type Terminal struct {
58 // buffer holds the terminal cells.
59 buffer buffer.Buffer
60
61 // events is a queue of input events.
62 events *eventqueue.Unbound
63
64 // mu protects the buffer.
65 mu sync.Mutex
66}
67
68// New returns a new fake Terminal.
69func New(size image.Point, opts ...Option) (*Terminal, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected