pub struct DisplayAttribute { /* private fields */ }Expand description
type to display terminal attributes
Implementations§
Source§impl DisplayAttribute
impl DisplayAttribute
Sourcepub fn clear_line()
pub fn clear_line()
clear current line
Sourcepub fn clear_screen() -> Result<()>
pub fn clear_screen() -> Result<()>
clear screen and move cursor to top
Sourcepub fn move_cursor(row: u16, col: u16)
pub fn move_cursor(row: u16, col: u16)
move cursor to row,col;
Sourcepub fn move_cursor_x_lines_up(row: u16)
pub fn move_cursor_x_lines_up(row: u16)
move cursor x line up
Sourcepub fn move_cursor_x_lines_down(row: u16)
pub fn move_cursor_x_lines_down(row: u16)
move cursor x line down
Sourcepub fn save_cursor_pos()
pub fn save_cursor_pos()
save current cursor position
Sourcepub fn restore_cursor_pos()
pub fn restore_cursor_pos()
restore cursor position
Sourcepub fn hide_cursor() -> Result<()>
pub fn hide_cursor() -> Result<()>
hide the terminal cursor
Sourcepub fn show_cursor() -> Result<()>
pub fn show_cursor() -> Result<()>
show the terminal cursor
pub fn get_term_size() -> (u16, u16)
pub fn set_scrollable_region(col: u16, row: u16)
pub fn none() -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DisplayAttribute
impl RefUnwindSafe for DisplayAttribute
impl Send for DisplayAttribute
impl Sync for DisplayAttribute
impl Unpin for DisplayAttribute
impl UnwindSafe for DisplayAttribute
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more