FileHandleInternal.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /** @file
  2. internal worker functions for FileHandleWrappers to use
  3. Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef _FILE_HANDLE_INTERNAL_HEADER_
  7. #define _FILE_HANDLE_INTERNAL_HEADER_
  8. /**
  9. Move the cursor position one character backward.
  10. @param[in] LineLength Length of a line. Get it by calling QueryMode
  11. @param[in, out] Column Current column of the cursor position
  12. @param[in, out] Row Current row of the cursor position
  13. **/
  14. VOID
  15. MoveCursorBackward (
  16. IN UINTN LineLength,
  17. IN OUT UINTN *Column,
  18. IN OUT UINTN *Row
  19. );
  20. /**
  21. Move the cursor position one character forward.
  22. @param[in] LineLength Length of a line.
  23. @param[in] TotalRow Total row of a screen
  24. @param[in, out] Column Current column of the cursor position
  25. @param[in, out] Row Current row of the cursor position
  26. **/
  27. VOID
  28. MoveCursorForward (
  29. IN UINTN LineLength,
  30. IN UINTN TotalRow,
  31. IN OUT UINTN *Column,
  32. IN OUT UINTN *Row
  33. );
  34. /**
  35. Prints out each previously typed command in the command list history log.
  36. When each screen is full it will pause for a key before continuing.
  37. @param[in] TotalCols How many columns are on the screen
  38. @param[in] TotalRows How many rows are on the screen
  39. @param[in] StartColumn which column to start at
  40. **/
  41. VOID
  42. PrintCommandHistory (
  43. IN CONST UINTN TotalCols,
  44. IN CONST UINTN TotalRows,
  45. IN CONST UINTN StartColumn
  46. );
  47. #endif //_FILE_HANDLE_INTERNAL_HEADER_