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");fn printText(text: String)Print text with no trailing newline.
import { printText } from "@std/uefi";
printText("no newline");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");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");