Function snapshot_console_palette
pub fn snapshot_console_palette(
api: &dyn WindowsApi,
) -> Option<ConsolePaletteSnapshot>Expand description
Snapshots the console’s 16-entry RGB palette and default text attribute for a later restore and for locating the default foreground/background entries the tint recolors.
§Arguments
api- The Windows API implementation to use.
§Returns
Some(snapshot) on success, or None if the buffer info could not be read
(state visuals degrade to a no-op rather than aborting the session).