[][src]Trait rustyline::config::Configurer

pub trait Configurer {
    pub fn config_mut(&mut self) -> &mut Config;

    pub fn set_max_history_size(&mut self, max_size: usize) { ... }
pub fn set_history_ignore_dups(&mut self, yes: bool) { ... }
pub fn set_history_ignore_space(&mut self, yes: bool) { ... }
pub fn set_completion_type(&mut self, completion_type: CompletionType) { ... }
pub fn set_completion_prompt_limit(
        &mut self,
        completion_prompt_limit: usize
    ) { ... }
pub fn set_keyseq_timeout(&mut self, keyseq_timeout_ms: i32) { ... }
pub fn set_edit_mode(&mut self, edit_mode: EditMode) { ... }
pub fn set_auto_add_history(&mut self, yes: bool) { ... }
pub fn set_bell_style(&mut self, bell_style: BellStyle) { ... }
pub fn set_color_mode(&mut self, color_mode: ColorMode) { ... }
pub fn set_output_stream(&mut self, stream: OutputStreamType) { ... }
pub fn set_tab_stop(&mut self, tab_stop: usize) { ... }
pub fn set_check_cursor_position(&mut self, yes: bool) { ... }
pub fn set_indent_size(&mut self, size: usize) { ... } }

Trait for component that holds a Config.

Required methods

pub fn config_mut(&mut self) -> &mut Config[src]

Config accessor.

Loading content...

Provided methods

pub fn set_max_history_size(&mut self, max_size: usize)[src]

Set the maximum length for the history.

pub fn set_history_ignore_dups(&mut self, yes: bool)[src]

Tell if lines which match the previous history entry are saved or not in the history list.

By default, they are ignored.

pub fn set_history_ignore_space(&mut self, yes: bool)[src]

Tell if lines which begin with a space character are saved or not in the history list.

By default, they are saved.

pub fn set_completion_type(&mut self, completion_type: CompletionType)[src]

Set completion_type.

pub fn set_completion_prompt_limit(&mut self, completion_prompt_limit: usize)[src]

The number of possible completions that determines when the user is asked whether the list of possibilities should be displayed.

pub fn set_keyseq_timeout(&mut self, keyseq_timeout_ms: i32)[src]

Timeout for ambiguous key sequences in milliseconds.

pub fn set_edit_mode(&mut self, edit_mode: EditMode)[src]

Choose between Emacs or Vi mode.

pub fn set_auto_add_history(&mut self, yes: bool)[src]

Tell if lines are automatically added to the history.

By default, they are not.

pub fn set_bell_style(&mut self, bell_style: BellStyle)[src]

Set bell style: beep, flash or nothing.

pub fn set_color_mode(&mut self, color_mode: ColorMode)[src]

Forces colorization on or off.

By default, colorization is on except if stdout is not a TTY.

pub fn set_output_stream(&mut self, stream: OutputStreamType)[src]

Whether to use stdout or stderr

By default, use stdout

pub fn set_tab_stop(&mut self, tab_stop: usize)[src]

Horizontal space taken by a tab.

By default, 8

pub fn set_check_cursor_position(&mut self, yes: bool)[src]

Check if cursor position is at leftmost before displaying prompt.

By default, we don't check.

pub fn set_indent_size(&mut self, size: usize)[src]

Indentation size for indent/dedent commands

By default, 2

Loading content...

Implementors

impl Configurer for Builder[src]

impl<H: Helper> Configurer for Editor<H>[src]

Loading content...