/* Insert one pre-fetched key into the Unicode FIFO buffer. */
BOOLEAN UnicodeFiFoInsertOneKey(TERMINAL_DEV *TerminalDevice, UINT16 Input)
/* Insert one pre-fetched key into the Unicode FIFO buffer. */
BOOLEAN UnicodeFiFoInsertOneKey(TERMINAL_DEV *TerminalDevice, UINT16 Input)
{
  UINT8  Tail;
  Tail = TerminalDevice->UnicodeFiFo->Tail;
  ASSERT (Tail < FIFO_MAX_NUMBER + 1);
  if (IsUnicodeFiFoFull (TerminalDevice)) {
    return FALSE;
  }
  TerminalDevice->UnicodeFiFo->Data[Tail] = Input;
  TerminalDevice->UnicodeFiFo->Tail = (UINT8)((Tail + 1) % (FIFO_MAX_NUMBER + 1));
  return TRUE;
}