/* Sets the background and foreground colors for the OutputString () and ClearScreen () functions. */
EFI_STATUS EFIAPI ConSplitterTextOutSetAttribute(IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This, IN UINTN Attribute)
/* Sets the background and foreground colors for the OutputString () and ClearScreen () functions. */
EFI_STATUS EFIAPI ConSplitterTextOutSetAttribute(IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This, IN UINTN Attribute)
{
  EFI_STATUS                      Status;
  TEXT_OUT_SPLITTER_PRIVATE_DATA  *Private;
  UINTN                           Index;
  EFI_STATUS                      ReturnStatus;
  Private = TEXT_OUT_SPLITTER_PRIVATE_DATA_FROM_THIS (This);
  if ((Attribute | 0x7F) != 0x7F) {
    return EFI_UNSUPPORTED;
  }
  for (Index = 0, ReturnStatus = EFI_SUCCESS; Index < Private->CurrentNumberOfConsoles; Index++) {
    Status = Private->TextOutList[Index].TextOut->SetAttribute (
                                                    Private->TextOutList[Index].TextOut,
                                                    Attribute
                                                    );
    if (EFI_ERROR (Status)) {
      ReturnStatus = Status;
    }
  }
  Private->TextOutMode.Attribute = (INT32)Attribute;
  return ReturnStatus;
}