Module engine

Source
Expand description

This module helps to abstract away the rendering of the prompts to the terminal.

It consists of the multiple traits:

  • Engine trait, that represents the backend which draws content on the screen and handles the input;
  • CommandBuffer trait that represents the set of rendering commands to display the given prompt.
  • Clear trait that is complemetary to the CommandBuffer and allows to clear its contents

Submodules are meant to implement the above traits using terminal manipulation libraries

Structs§

CrosstermEngine
Terminal handing backend implemented with the crossterm crate

Traits§

Clear
Suplementary trait to the CommandBuffer
CommandBuffer
Represents the set of rendering commands
Engine
Represents the backend to draw prompts on the screen and handle input