Terminal provides input and output to a real terminal. Wraps the gdamore/tcell terminal implementation. This object is not thread-safe. Implements terminalapi.Terminal.
| 66 | // gdamore/tcell terminal implementation. This object is not thread-safe. |
| 67 | // Implements terminalapi.Terminal. |
| 68 | type 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. |
| 85 | var tcellNewScreen = tcell.NewScreen |
nothing calls this directly
no outgoing calls
no test coverage detected