API Reference

Functions

fn printLine(text: String)

Print text followed by a newline, without the call-macro argument array. Use it for a message that is already a String.

import { printLine } from "@std/uefi";

printLine("plain line");
Run in Playground
fn printText(text: String)

Print text with no trailing newline.

import { printText } from "@std/uefi";

printText("no newline");
Run in Playground
fn println(args: Array<Any>)

Print the argument values as one line on the UEFI console.

Arguments are joined with a single space. The line also goes to COM1 when the firmware exposes it, so a qemu -serial stdio capture sees the same text.

import { println } from "@std/uefi";

println!("hello from uefi");
Run in Playground
fn uefi_println(args: Array<Any>)

Same as println!, under a name that cannot be confused with a host console macro.

import { uefi_println } from "@std/uefi";

uefi_println!("hello from uefi");
Run in Playground