/* when page break mode is enabled the screen will stop scrolling and wait for operator input before scrolling a subsequent screen. */
VOID EFIAPI ShellSetPageBreakMode(IN BOOLEAN CurrentState)
/* when page break mode is enabled the screen will stop scrolling and wait for operator input before scrolling a subsequent screen. */
VOID EFIAPI ShellSetPageBreakMode(IN BOOLEAN CurrentState)
{
  if (CurrentState != 0x00) {
    if (gEfiShellProtocol != NULL) {
      gEfiShellProtocol->EnablePageBreak ();
      return;
    } else {
      if (mEfiShellEnvironment2 != NULL) {
        mEfiShellEnvironment2->EnablePageBreak (DEFAULT_INIT_ROW, DEFAULT_AUTO_LF);
        return;
      }
    }
  } else {
    if (gEfiShellProtocol != NULL) {
      gEfiShellProtocol->DisablePageBreak ();
      return;
    } else {
      if (mEfiShellEnvironment2 != NULL) {
        mEfiShellEnvironment2->DisablePageBreak ();
        return;
      }
    }
  }
}