Struct crossterm_winapi::ScreenBufferInfo [−][src]
pub struct ScreenBufferInfo(pub CONSOLE_SCREEN_BUFFER_INFO);
Expand description
Information about a console screen buffer.
This wraps
CONSOLE_SCREEN_BUFFER_INFO
.
Tuple Fields
0: CONSOLE_SCREEN_BUFFER_INFO
Implementations
Create a new console screen buffer without all zeroed properties.
Get the size of the screen buffer.
Will take dwSize
from the current screen buffer and convert it into a Size
.
Get the size of the terminal display window.
Will calculate the width and height from srWindow
and convert it into a Size
.
Get the position and size of the terminal display window.
Will take srWindow
and convert it into the WindowPositions
type.
Get the current attributes of the characters that are being written to the console.
Will take wAttributes
from the current screen buffer.
Get the current column and row of the terminal cursor in the screen buffer.
Will take dwCursorPosition
from the current screen buffer.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ScreenBufferInfo
impl Send for ScreenBufferInfo
impl Sync for ScreenBufferInfo
impl Unpin for ScreenBufferInfo
impl UnwindSafe for ScreenBufferInfo
Blanket Implementations
Mutably borrows from an owned value. Read more