Type Definition libnotcurses_sys::widgets::NcReader

source ·
pub type NcReader = ncreader;
Expand description

Provides a freeform input in a (possibly multiline) region

Supports optional readline keybindings (opt out using NCREADER_OPTION_NOCMDKEYS flag)

Takes ownership of its NcPlane, destroying it on any error (otherwise destroy destroys the plane).

type in C: ncreader (struct)

Implementations§

source§

impl NcReader

source

pub fn new<'a>(plane: &mut NcPlane) -> NcResult<&'a mut Self>

NcReader simple constructor.

source

pub fn with_options<'a>( plane: &mut NcPlane, options: &NcReaderOptions ) -> NcResult<&'a mut Self>

NcReader constructor with options.