clear_screen

Function clear_screen 

pub fn clear_screen(api: &dyn WindowsApi)
Expand description

Empties the console screen output buffer of the current console window using the provided API.

§Arguments

  • api - The Windows API implementation to use.

§Examples

use csshw_lib::utils::windows::{clear_screen, DefaultWindowsApi};

let api = DefaultWindowsApi;
clear_screen(&api);