Skip to content

Instantly share code, notes, and snippets.

@kant2002
Created March 23, 2020 21:33
Show Gist options
  • Save kant2002/6e8030f19f7f1eded273e0bf2407b45e to your computer and use it in GitHub Desktop.
Save kant2002/6e8030f19f7f1eded273e0bf2407b45e to your computer and use it in GitHub Desktop.
Trivial Port of Console operations
public unsafe static ConsoleColor ForegroundColor
{
set
{
s_consoleAttribute = (ushort)value;
uint color = s_consoleAttribute;
EfiRuntimeHost.SystemTable->ConOut->SetAttribute(EfiRuntimeHost.SystemTable->ConOut, color);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment