Skip to content

Rust crates for building TUIs in UEFI applications

License

Notifications You must be signed in to change notification settings

reubeno/tui-uefi

Repository files navigation

tui-uefi

CI workflow badge

Provides crates useful for building TUIs (Terminal User Interfaces) in a UEFI application or boot loader:

  • ratatui-uefi: implements an output backend usable with ratatui
  • terminput-uefi: implements an input backend usable with terminput

screenshot

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.

About

Rust crates for building TUIs in UEFI applications

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Languages