Crosstermion is a utility crate to unify some types of both crates, allowing to easily build apps that use the leaner termion
crate on unix systems, but resort to crossterm on windows systems.
Currently provided facilities are:
Key
type an an input_stream
(async) to receive key pressesAltenrativeRawTerminal
which marries an alternative screen with raw modetui
or tui-react
terminal with either the crossterm or the termion backend.All features work additively, but in case they are mutually exclusive, for instance
in case of tui-react
and tui
, or crossterm
and termion
, the more general one will be chosen.
Key
conversion support from crossbeam::event::KeyEvent
and an AlternativeRawTerminal
crossbeam
channelsflume
channelsmio
.Key
conversion support from termion::event::Key
and an AlternativeRawTerminal
crossbeam
channelsflume
channelstui_
_(mutually exclusive)
tui
with termion
and provides a tui::Terminal
with termion
backendtui
with crossterm
and provides a tui::Terminal
with crossterm
backendtui-react
(mutually exclusive)
tui-react
with crossterm
and provides a tui::Terminal
with crossterm
backendtui-react
with crossterm
and provides a tui::Terminal
with crossterm
backend