Function libnotcurses_sys::ffi::ncdirect_init [−][src]
pub unsafe extern "C" fn ncdirect_init(
termtype: *const c_char,
fp: *mut FILE,
flags: u64
) -> *mut ncdirect
Expand description
Initialize a direct-mode Notcurses context on the connected terminal at ‘fp’. ‘fp’ must be a tty. You’ll usually want stdout. Direct mode supports a limited subset of Notcurses routines which directly affect ‘fp’, and neither supports nor requires notcurses_render(). This can be used to add color and styling to text in the standard output paradigm. ‘flags’ is a bitmask over NCDIRECT_OPTION_*. Returns NULL on error, including any failure initializing terminfo.