use minime::{ editor::{keybindings::DebugKeybinding, Editor}, renderer::{ full::CrosstermRenderer, styles::fancy::{FancyFooter, FancyGutter, FancyHeader}, }, Result, }; fn main() -> Result<()> { // Redirect our output to stdout (default). let stdout = std::io::stdout(); let mut lock = stdout.lock(); let renderer = CrosstermRenderer::render_to(&mut lock) .max_height(Some(10)) .header(FancyHeader { message: "Debug keybindings for keybinding development", }) .margin(FancyGutter) .footer(FancyFooter); // Print out some prompt using styling options. let term = Editor::with_renderer(renderer); dbg!(term.read(DebugKeybinding)?); Ok(()) }