Skip to content
TopicTracker
From HackerNewsView original
TranslationTranslation

Ratatui without OS, directly in UEFI

A project called RatatuEFI ports the Ratatui terminal UI framework to run directly in UEFI, without an underlying operating system. It enables building TUI applications that boot and run in the UEFI environment.

Background

- Ratatui is a popular Rust library for building terminal-based user interfaces (TUIs) in the style of the older Python library "curses." It normally runs inside an operating system, relying on the OS to handle keyboard input and screen output via a terminal emulator. - UEFI (Unified Extensible Firmware Interface) is the modern replacement for the old PC BIOS — the low-level firmware that runs when a computer first powers on, before the operating system loads. UEFI apps run in a bare-metal environment with no OS underneath. - This project, Ratatuefi, ports Ratatui's rendering to run directly in UEFI, meaning you can build graphical TUI-style interfaces that appear before any OS boots — for example, a firmware setup menu, a boot manager, or a diagnostic tool. - It is significant because writing UEFI interfaces is normally painful (limited graphics, no standard input library). By bringing a familiar Rust TUI framework to that environment, the project lowers the barrier for developers to build polished pre-OS tools.

Related stories