/* Implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.ClearScreen(). It clears the ANSI terminal's display to the currently selected background color. */
EFI_STATUS EFIAPI TerminalConOutClearScreen(IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This)
/* Implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.ClearScreen(). It clears the ANSI terminal's display to the currently selected background color. */
EFI_STATUS EFIAPI TerminalConOutClearScreen(IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This)
{
  EFI_STATUS    Status;
  TERMINAL_DEV  *TerminalDevice;
  TerminalDevice = TERMINAL_CON_OUT_DEV_FROM_THIS (This);
  TerminalDevice->OutputEscChar = TRUE;
  Status                        = This->OutputString (This, mClearScreenString);
  TerminalDevice->OutputEscChar = FALSE;
  if (EFI_ERROR (Status)) {
    return EFI_DEVICE_ERROR;
  }
  Status = This->SetCursorPosition (This, 0, 0);
  return Status;
}