/*++\r
\r
-Copyright (c) 2004, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
http://opensource.org/licenses/bsd-license.php\r
--*/\r
\r
#include "Console.h"\r
-#include <sys/poll.h>
+#include <sys/poll.h>\r
\r
//\r
// Private worker functions\r
\r
EFI_STATUS\r
UnixConvertInputRecordToEfiKey (\r
- IN char c,
+ IN char c,\r
OUT EFI_INPUT_KEY *Key\r
)\r
/*++\r
--*/\r
{\r
Key->ScanCode = 0;\r
- if (c == '\n')
- c = '\r';
+ if (c == '\n')\r
+ c = '\r';\r
Key->UnicodeChar = c;\r
return EFI_SUCCESS;\r
}\r
{\r
EFI_STATUS Status;\r
UNIX_SIMPLE_TEXT_PRIVATE_DATA *Private;\r
- char c;
+ char c;\r
\r
Private = UNIX_SIMPLE_TEXT_IN_PRIVATE_DATA_FROM_THIS (This);\r
\r
return Status;\r
}\r
\r
- if (Private->UnixThunk->Read (0, &c, 1) != 1)
+ if (Private->UnixThunk->Read (0, &c, 1) != 1)\r
return EFI_NOT_READY;\r
Status = UnixConvertInputRecordToEfiKey (c, Key);\r
\r
\r
--*/\r
{\r
- struct pollfd pfd;
+ struct pollfd pfd;\r
\r
- pfd.fd = 0;
- pfd.events = POLLIN;
- if (Private->UnixThunk->Poll (&pfd, 1, 0) <= 0) {
+ pfd.fd = 0;\r
+ pfd.events = POLLIN;\r
+ if (Private->UnixThunk->Poll (&pfd, 1, 0) <= 0) {\r
return EFI_NOT_READY;\r
}\r
return EFI_SUCCESS;\r