[][src]Function cursive::default

pub fn default() -> Cursive

Creates a new Cursive root using one of the enabled backends.

Will use the first available backend from this list:

  • BearLibTerminal
  • Termion
  • Crossterm
  • Pancurses
  • Ncurses

If none of these is enabled, it will default to a dummy backend.

Panics

If the backend initialization fails.