/* Check if input string is valid Ascii string, valid EFI control characters or valid text graphics. */
EFI_STATUS AnsiTestString(IN TERMINAL_DEV *TerminalDevice, IN CHAR16 *WString)
/* Check if input string is valid Ascii string, valid EFI control characters or valid text graphics. */
EFI_STATUS AnsiTestString(IN TERMINAL_DEV *TerminalDevice, IN CHAR16 *WString)
{
  CHAR8  GraphicChar;
  for ( ; *WString != CHAR_NULL; WString++) {
    if ( !(TerminalIsValidAscii (*WString) ||
           TerminalIsValidEfiCntlChar (*WString) ||
           TerminalIsValidTextGraphics (*WString, &GraphicChar, NULL)))
    {
      return EFI_UNSUPPORTED;
    }
  }
  return EFI_SUCCESS;
}