diff --git a/src/cursive.rs b/src/cursive.rs index d04c28e..c2b6ab4 100644 --- a/src/cursive.rs +++ b/src/cursive.rs @@ -93,6 +93,13 @@ cfg_if::cfg_if! { Self::ncurses().unwrap() } } + } else { + impl Default for Cursive { + fn default() -> Self { + log::warning!("No built-it backend, falling back to Cursive::dummy()."); + Self::dummy() + } + } } }