22.3.2 OutputString() Implementation

OutputString() is the function used to output Unicode strings to the console. It is responsible for verifying the printability of the string passed, fixing it if required, and displaying it on the console. The steps to follow are:

  1. Verify that the current mode is good.
  2. Check each character to see if it is printable as text or graphics. Characters that are not printable as text or graphics are skipped.
  3. Print all printable characters.
  4. Update position of the cursor in the *Mode.
  5. Return EFI_SUCCESS or EFI_WARN_UNKNOWN_GLYPH if some had to be fixed before printing.