AreaPrinter prints an area which can be updated easily. use this printer for live output like charts, algorithm visualizations, simulations and even games.
| 15 | // AreaPrinter prints an area which can be updated easily. |
| 16 | // use this printer for live output like charts, algorithm visualizations, simulations and even games. |
| 17 | type AreaPrinter struct { |
| 18 | RemoveWhenDone bool |
| 19 | Fullscreen bool |
| 20 | Center bool |
| 21 | |
| 22 | content string |
| 23 | isActive bool |
| 24 | |
| 25 | area *cursor.Area |
| 26 | } |
| 27 | |
| 28 | // GetContent returns the current area content. |
| 29 | func (p *AreaPrinter) GetContent() string { |
nothing calls this directly
no outgoing calls
no test coverage detected