pub struct NotcursesBuilder { /* private fields */ }Expand description
A Notcurses builder.
Implementations§
Source§impl NotcursesBuilder
§constructors
impl NotcursesBuilder
§constructors
Source§impl NotcursesBuilder
§methods (chainable)
impl NotcursesBuilder
§methods (chainable)
Sourcepub fn margin_top(self, top: u32) -> Self
pub fn margin_top(self, top: u32) -> Self
Sets the top margin.
Sourcepub fn margin_right(self, right: u32) -> Self
pub fn margin_right(self, right: u32) -> Self
Sets the right margin.
Sourcepub fn margin_bottom(self, bottom: u32) -> Self
pub fn margin_bottom(self, bottom: u32) -> Self
Sets the bottom margin.
Sourcepub fn margin_left(self, left: u32) -> Self
pub fn margin_left(self, left: u32) -> Self
Sets the left margin.
Sourcepub fn drain_input(self, drain: bool) -> Self
pub fn drain_input(self, drain: bool) -> Self
If true, Input may be freely dropped.
This ought be provided when the program does not intend to handle input. Otherwise, input can accumulate in internal buffers, eventually preventing Notcurses from processing terminal messages.
Sourcepub fn inhibit_set_locale(self, inhibit: bool) -> Self
pub fn inhibit_set_locale(self, inhibit: bool) -> Self
If true, wont call setlocale().
Sourcepub fn no_alternate_screen(self, no_alternate: bool) -> Self
pub fn no_alternate_screen(self, no_alternate: bool) -> Self
If true, wont enter alternate mode.
Sourcepub fn no_clear_bitmaps(self, no_clear: bool) -> Self
pub fn no_clear_bitmaps(self, no_clear: bool) -> Self
If true, wont try to clear any preexisting bitmaps.
Sourcepub fn no_font_changes(self, no_font_changes: bool) -> Self
pub fn no_font_changes(self, no_font_changes: bool) -> Self
If true, wont modify the font.
Sourcepub fn no_quit_sig_handlers(self, no_quit: bool) -> Self
pub fn no_quit_sig_handlers(self, no_quit: bool) -> Self
If true, wont handle SIGINT, SIGSEGV, SIGABRT nor SIGQUIT.
Sourcepub fn no_winch_sig_handler(self, no_winch: bool) -> Self
pub fn no_winch_sig_handler(self, no_winch: bool) -> Self
If true, wont handle SIGWINCH.
Sourcepub fn preserve_cursor(self, preserve: bool) -> Self
pub fn preserve_cursor(self, preserve: bool) -> Self
If true, will initializes the CLI plane’s virtual cursor to match
the physical cursor at context creation time.
Sourcepub fn scrolling(self, scrolling: bool) -> Self
pub fn scrolling(self, scrolling: bool) -> Self
If true, will prepare the CLI plane in scrolling mode.
Sourcepub fn cli_mode(self, cli_mode: bool) -> Self
pub fn cli_mode(self, cli_mode: bool) -> Self
A shortcut for setting the following options together:
no_alternate_screen, no_clear_bitmaps, preserve_cursor & scrolling.
If true, wont print banners.
Trait Implementations§
Source§impl Clone for NotcursesBuilder
impl Clone for NotcursesBuilder
Source§fn clone(&self) -> NotcursesBuilder
fn clone(&self) -> NotcursesBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more