Function set_console_color
pub fn set_console_color(
api: &dyn WindowsApi,
color: CONSOLE_CHARACTER_ATTRIBUTES,
)Expand description
Sets the back- and foreground color of the current console window using the provided API.
§Arguments
api- The Windows API implementation to use.color- The color value describing the back- and foreground color.
§Examples
use csshw_lib::utils::windows::{set_console_color, DefaultWindowsApi};
use windows::Win32::System::Console::CONSOLE_CHARACTER_ATTRIBUTES;
let api = DefaultWindowsApi;
set_console_color(&api, CONSOLE_CHARACTER_ATTRIBUTES(0x0F));