tui-uefi
April 11, 2025 ยท View on GitHub
Provides crates useful for building TUIs (Terminal User Interfaces) in a UEFI application or boot loader:
ratatui-uefi: implements an output backend usable with ratatuiterminput-uefi: implements an input backend usable with terminput
Build
Firstly add the UEFI target to your toolchain:
$ rustup target add x86_64-unknown-uefi
Then build using nightly:
$ cargo +nightly build --target=x86_64-unknown-uefi
Only tested with x86_64 but may work just fine for aarch64 as well.
Running an example
You can use uefi-run to run the examples, e.g.:
$ cargo install uefi-run
$ cargo +nightly build --target=x86_64-unknown-uefi
$ uefi-run -d target/x86_64-unknown-uefi/debug/basic.efi -- -enable-kvm
Note: if your environment doesn't support KVM, you will need to remove the -enable-kvm option.