pub(crate) fn init_console_color() -> Result<()> {
    if ORIGINAL_CONSOLE_COLOR.load(Ordering::Relaxed) == u32::MAX {
        let screen_buffer = ScreenBuffer::current()?;
        let attr = screen_buffer.info()?.attributes();
        ORIGINAL_CONSOLE_COLOR.store(u32::from(attr), Ordering::Relaxed);
    }

    Ok(())
}
/// Initializes the default console color. It will will be skipped if it has already been initialized.
Initializes the default console color. It will will be skipped if it has already been initialized.
Initializes the default console color . It will will be skipped if it has already been initialized .
pub(crate) fn init_console_color() -> Result<()> {
    if ORIGINAL_CONSOLE_COLOR.load(Ordering::Relaxed) == u32::MAX {
        let screen_buffer = ScreenBuffer::current()?;
        let attr = screen_buffer.info()?.attributes();
        ORIGINAL_CONSOLE_COLOR.store(u32::from(attr), Ordering::Relaxed);
    }
    Ok(())
}
pub ( crate ) fn init_console_color ( ) -> Result < ( ) > { if ORIGINAL_CONSOLE_COLOR . load ( Ordering :: Relaxed ) == u32 :: MAX { let screen_buffer = ScreenBuffer :: current ( ) ? ; let attr = screen_buffer . info ( ) ? . attributes ( ) ; ORIGINAL_CONSOLE_COLOR . store ( u32 :: from ( attr ) , Ordering :: Relaxed ) ; } Ok ( ( ) ) }
Initializes the default console color.
Initializes the default console color .