fn center_text(stdout: &mut Output) {
    // Move the cursor.
    // This will make this `info!` line below be (somewhat) centered.
    stdout
        .enable_cursor(true)
        .warning_as_error()
        .unwrap_or_else(|e| match e.status() {
            Status::UNSUPPORTED => info!("Cursor visibility control unavailable"),
            _ => panic!("Failed to show cursor"),
        });
    stdout
        .set_cursor_position(24, 0)
        .expect_success("Failed to move cursor");
    info!("# uefi-rs test runner");
    stdout
        .enable_cursor(false)
        .warning_as_error()
        .unwrap_or_else(|e| match e.status() {
            Status::UNSUPPORTED => info!("Cursor visibility control unavailable"),
            _ => panic!("Failed to hide cursor"),
        });
}
// Print a text centered on screen.
Print a text centered on screen.
Print a text centered on screen .
fn center_text(stdout: &mut Output) {
    // Move the cursor.
    // This will make this `info!` line below be (somewhat) centered.
    stdout
        .enable_cursor(true)
        .warning_as_error()
        .unwrap_or_else(|e| match e.status() {
            Status::UNSUPPORTED => info!("Cursor visibility control unavailable"),
            _ => panic!("Failed to show cursor"),
        });
    stdout
        .set_cursor_position(24, 0)
        .expect_success("Failed to move cursor");
    info!("# uefi-rs test runner");
    stdout
        .enable_cursor(false)
        .warning_as_error()
        .unwrap_or_else(|e| match e.status() {
            Status::UNSUPPORTED => info!("Cursor visibility control unavailable"),
            _ => panic!("Failed to hide cursor"),
        });
}
fn center_text ( stdout : & mut Output ) { // Move the cursor. // This will make this `info!` line below be (somewhat) centered. stdout . enable_cursor ( true ) . warning_as_error ( ) . unwrap_or_else ( | e | match e . status ( ) { Status :: UNSUPPORTED => info ! ( " " ) , _ => panic ! ( " " ) , } ) ; stdout . set_cursor_position ( 24 , 0 ) . expect_success ( " " ) ; info ! ( " " ) ; stdout . enable_cursor ( false ) . warning_as_error ( ) . unwrap_or_else ( | e | match e . status ( ) { Status :: UNSUPPORTED => info ! ( " " ) , _ => panic ! ( " " ) , } ) ; }
Print a text centered on screen.
Print a text centered on screen .
stdout
&mut Output