/// Get the screen buffer information like terminal size, cursor position, buffer size.
///
/// Wraps the underlying function call: [GetConsoleScreenBufferInfo]
/// link: [https://docs.microsoft.com/en-us/windows/console/getconsolescreenbufferinfo]

Get the screen buffer information like terminal size, cursor position, buffer size.
Get the screen buffer information like terminal size cursor position buffer size .
pub fn info(&self) -> Result<ScreenBufferInfo> {
        let mut csbi = ScreenBufferInfo::new();
        unsafe {
            if !is_true(GetConsoleScreenBufferInfo(*self.handle, &mut csbi.0)) {
                return Err(Error::last_os_error());
            }
        }
        Ok(csbi)
    }
pub fn info ( & self ) -> Result < ScreenBufferInfo > { let mut csbi = ScreenBufferInfo :: new ( ) ; unsafe { if ! is_true ( GetConsoleScreenBufferInfo ( * self . handle , & mut csbi . 0 ) ) { return Err ( Error :: last_os_error ( ) ) ; } } Ok ( csbi ) }
Get the screen buffer information like terminal size, cursor position, buffer size.
Get the screen buffer information like terminal size cursor position buffer size .
&self