According to the discussion on https://github.com/ErichDonGubler/termion/issues/8, we will want to refactor this library to expose MOST of its API through a new struct that will control initialization and cleanup of any terminal state that is needed to guarantee that the terminal is using ANSI-compatible features.
The motivation for this is that, by default, Windows 10's cmd.exe does NOT enable ANSI escape processing. In order to be a good citizen with terminal state, we need to provide an ergonomic facility for ensuring that terminal state is reset correctly when this library is done being used.
According to the discussion on https://github.com/ErichDonGubler/termion/issues/8, we will want to refactor this library to expose MOST of its API through a new
struct
that will control initialization and cleanup of any terminal state that is needed to guarantee that the terminal is using ANSI-compatible features.The motivation for this is that, by default, Windows 10's
cmd.exe
does NOT enable ANSI escape processing. In order to be a good citizen with terminal state, we need to provide an ergonomic facility for ensuring that terminal state is reset correctly when this library is done being used.