Function libnotcurses_sys::notcurses_init[][src]

pub unsafe extern "C" fn notcurses_init(
    opts: *const notcurses_options,
    fp: *mut FILE
) -> *mut notcurses
Expand description

Initialize a Notcurses context on the connected terminal at ‘fp’. ‘fp’ must be a tty. You’ll usually want stdout. NULL can be supplied for ‘fp’, in which case /dev/tty will be opened. Returns NULL on error, including any failure initializing terminfo.