Replace direct interaction with the terminal with an abstraction. This abstraction is tightly constrained to the capabilities needed for the CLI's display. Using this abstraction allows for straightforward testing of the interactive renderers.