Page 1 of 1

How can I write directly to the EFI simple text protocol?

Posted: Fri Oct 23, 2026 7:53 pm
by icr09
Good evening. How can I write directly to the UEFI Simple Text Output Protocol? I haven't been able to find any resources that explain this in a simple or straightforward way. #-o

Re: How can I write directly to the EFI simple text protocol?

Posted: Fri Oct 23, 2026 8:07 pm
by Octocontrabass
First you get a pointer to an EFI Simple Text Output Protocol. If you don't know where to get one of those, you probably want to use ConOut from the EFI System Table. The EFI Simple Text Output Protocol is (a pointer to) a struct that contains a function pointer named OutputString(). Call that function, passing the pointer to the EFI Simple Text Output Protocol (ConOut) as the first argument and your string as the second argument.

Re: How can I write directly to the EFI simple text protocol?

Posted: Sat Oct 24, 2026 2:44 am
by nullplan
I have never used the Simple Text Protocol before. Is that even implemented in real world EFI implementations? Because I cannot imagine that Windows needs it to boot (and if Windows doesn't need it, I figure most vendors aren't gonna bother).

Re: How can I write directly to the EFI simple text protocol?

Posted: Sat Oct 24, 2026 5:36 am
by icr09
thanks!