Expand description
Ratatui adapter surface for hjkl_engine.
Provides:
style_to_ratatui— convert an engine-nativehjkl_engine::types::Styleto aratatui::style::Style.style_from_ratatui— the inverse conversion (lossy for ratatui colors the engine doesn’t model — flattens to nearest RGB).EditorRatatuiExt— extension trait onhjkl_engine::Editorthat exposesintern_ratatui_style,install_ratatui_syntax_spans, andratatui_style_table. Extracted fromhjkl-engine’sratatuifeature gate as part of #162 phase 2.KeyEvent— re-export ofcrossterm::event::KeyEventfor downstream convenience.crossterm_to_input— convert a crosstermKeyEventto the engine-agnostichjkl_engine::Inputtype. Moved fromhjkl-engine’scrosstermfeature gate as part of #162 phase 3.
Structs§
- KeyEvent
- Re-export of
crossterm::event::KeyEventfor downstream convenience. Represents a key event.
Traits§
- Editor
Ratatui Ext - Extension trait that adds ratatui-flavoured style methods to
hjkl_engine::Editor.
Functions§
- crossterm_
to_ input - Convert a crossterm
KeyEventto the engine-agnostichjkl_engine::Input. - style_
from_ ratatui - Convert a
ratatui::style::Styleto an engine-nativeStyle. - style_
to_ ratatui - Convert an engine-native
Styleto aratatui::style::Style.