]> git.proxmox.com Git - mirror_edk2.git/blame - ShellPkg/Application/Shell/FileHandleInternal.h
ShellPkg: Fix the bug that handling Ctrl-C improperly
[mirror_edk2.git] / ShellPkg / Application / Shell / FileHandleInternal.h
CommitLineData
d42aab6e
HT
1/** @file\r
2 internal worker functions for FileHandleWrappers to use\r
3\r
4 Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
5 This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef _FILE_HANDLE_INTERNAL_HEADER_\r
16#define _FILE_HANDLE_INTERNAL_HEADER_\r
17\r
18/**\r
19 Move the cursor position one character backward.\r
20\r
21 @param[in] LineLength Length of a line. Get it by calling QueryMode\r
22 @param[in, out] Column Current column of the cursor position\r
23 @param[in, out] Row Current row of the cursor position\r
24**/\r
25VOID\r
d42aab6e
HT
26MoveCursorBackward (\r
27 IN UINTN LineLength,\r
28 IN OUT UINTN *Column,\r
29 IN OUT UINTN *Row\r
30 );\r
31\r
32/**\r
33 Move the cursor position one character forward.\r
34\r
35 @param[in] LineLength Length of a line.\r
36 @param[in] TotalRow Total row of a screen\r
37 @param[in, out] Column Current column of the cursor position\r
38 @param[in, out] Row Current row of the cursor position\r
39**/\r
40VOID\r
d42aab6e
HT
41MoveCursorForward (\r
42 IN UINTN LineLength,\r
43 IN UINTN TotalRow,\r
44 IN OUT UINTN *Column,\r
45 IN OUT UINTN *Row\r
46 );\r
47\r
48/**\r
49 Prints out each previously typed command in the command list history log.\r
50\r
51 When each screen is full it will pause for a key before continuing.\r
52\r
53 @param[in] TotalCols How many columns are on the screen\r
54 @param[in] TotalRows How many rows are on the screen\r
55 @param[in] StartColumn which column to start at\r
56**/\r
57VOID\r
d42aab6e
HT
58PrintCommandHistory (\r
59 IN CONST UINTN TotalCols,\r
60 IN CONST UINTN TotalRows,\r
61 IN CONST UINTN StartColumn\r
62 );\r
63\r
64#endif //_FILE_HANDLE_INTERNAL_HEADER_\r
65\r