UEFI standard tells about control sequences that can be used with OutputString function of the EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL. It seems I've tried all possible variants of escape sequences to apply different colors within one string. None worked.
Maybe anybody knows if it's possible (and how) to apply different colors within one string?
Thanks in advance
Yes, SetAttribute works. EFI color constants are defined in the spec.
I'm soon going to make another tutorial on Simple Text Output to print a colored string centered on the screen (to show usage of ClearScreen, GetMode, SetAttribute, SetCursorPos,OutputString).
Different colors within one string require a sequence of SetAttribute-OutputString's. I've heard about escape sequences (also defined in the Spec) but never tried them.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum