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

Struct Terminal

terminal/tcell/tcell.go:68–82  ·  view source on GitHub ↗

Terminal provides input and output to a real terminal. Wraps the gdamore/tcell terminal implementation. This object is not thread-safe. Implements terminalapi.Terminal.

Source from the content-addressed store, hash-verified

66// gdamore/tcell terminal implementation. This object is not thread-safe.
67// Implements terminalapi.Terminal.
68type Terminal struct {
69 // events is a queue of input events.
70 events *eventqueue.Unbound
71
72 // done gets closed when Close() is called.
73 done chan struct{}
74
75 // the tcell terminal window
76 screen tcell.Screen
77
78 // Options.
79 colorMode terminalapi.ColorMode
80 clearStyle *cell.Options
81 mouseOn bool
82}
83
84// tcellNewScreen can be overridden from tests.
85var tcellNewScreen = tcell.NewScreen

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected