#include <ntoskrnl.h>
#include "kd.h"
#include "kdterminal.h"
Go to the source code of this file.
◆ KdbGetHistoryEntry()
◆ KdIoReadLine()
Reads a line of user input from the terminal.
- Parameters
-
[out] | Buffer | Buffer where to store the input. Trailing newlines are removed. |
[in] | Size | Size of Buffer . |
- Returns
- Returns the number of characters stored, not counting the NULL terminator.
- Note
- Accepts only
newlines, \r is ignored.
Definition at line 51 of file kdprompt.c.
54{
59 LONG CmdHistIndex = -1;
60
61
63
64
66 return 0;
67
68 for (;;)
69 {
71
72
73 if ((
Key ==
'\r') || (
Key ==
'\n'))
74 {
78 }
80 {
81
83 {
86
87 if (EchoOn)
89 else
91 }
92 }
94 {
97 if (CmdHistory)
98 {
100
101
103 {
106
107 if (EchoOn)
109 else
111 }
112
113
119 }
120 }
121 else
122 {
123
125 continue;
126
127 if (EchoOn)
129
132 }
133 }
134}
ACPI_SIZE strlen(const char *String)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
VOID __cdecl KdIoPrintf(_In_ PCSTR Format,...)
VOID KdIoPuts(_In_ PCSTR String)
PCSTR KdbGetHistoryEntry(_Inout_ PLONG NextIndex, _In_ BOOLEAN Next)
VOID KdpFlushTerminalInput(VOID)
Flushes terminal input (either serial or PS/2).
CHAR KdpReadTermKey(_Out_ PULONG ScanCode)
Reads one character from the terminal. This function returns a scan code even when reading is done fr...
#define memcpy(s1, s2, n)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Referenced by KdReceivePacket().