Struct fm::term_manager::Display
source · pub struct Display { /* private fields */ }Expand description
Is responsible for displaying content in the terminal. It uses an already created terminal.
Implementations§
source§impl Display
impl Display
sourcepub fn new(term: Arc<Term>, colors: Colors) -> Self
pub fn new(term: Arc<Term>, colors: Colors) -> Self
Returns a new Display instance from a tuikit::term::Term object.
sourcepub fn show_cursor(&self) -> FmResult<()>
pub fn show_cursor(&self) -> FmResult<()>
Used to force a display of the cursor before leaving the application. Most of the times we don’t need a cursor and it’s hidden. We have to do it unless the shell won’t display a cursor anymore.
sourcepub fn display_all(&mut self, status: &Status) -> FmResult<()>
pub fn display_all(&mut self, status: &Status) -> FmResult<()>
Display every possible content in the terminal.
The top line
The files if we’re displaying them
The cursor if a content is editable
The help if Mode::Help
The jump_list if Mode::Jump
The completion list if any.
The preview in preview mode. Displays one pane or two panes, depending of the width and current status of the application.