Terminal is a fake terminal. This implementation is thread-safe.
| 55 | // Terminal is a fake terminal. |
| 56 | // This implementation is thread-safe. |
| 57 | type 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. |
| 69 | func New(size image.Point, opts ...Option) (*Terminal, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected