Screen hides the terminal library from the consuming code so that it can be swapped out for testing
| 20 | // Screen hides the terminal library from the consuming code so that |
| 21 | // it can be swapped out for testing |
| 22 | type Screen interface { |
| 23 | Init(*config.Config) error |
| 24 | Close() error |
| 25 | Flush() error |
| 26 | PollEvent(context.Context, *config.Config) chan Event |
| 27 | Print(PrintArgs) int |
| 28 | Resume(context.Context) error |
| 29 | SetCell(int, int, rune, config.Attribute, config.Attribute) |
| 30 | SetCursor(int, int) |
| 31 | Size() (int, int) |
| 32 | SendEvent(Event) |
| 33 | Suspend() |
| 34 | } |
| 35 | |
| 36 | // TcellScreen implements the Screen interface using tcell/v2. |
| 37 | type TcellScreen struct { |
no outgoing calls
no test coverage detected
searching dependent graphs…