105 const LPDWORD lpcWritten = &cWritten;
108 COORD coordWrite = {sX,sY};
110 for (
unsigned int i = 0;
i < cWriteCells;
i++)
111 lpwAttribute[
i] = wAttrib;
126 delete [] lpwAttribute;
131 for(
int j =
len - 1;
j >= 0;
j--) {
139static int setmaxlines(
int iDisplay,
int iScrollSize,
int strippedlines,
142 case HEX:
return(iScrollSize / 16);
break;
144 case DUMPB:
return(iScrollSize / con_width);
break;
145 case TEXTB:
return(strippedlines);
break;
152 memcpy(&szStatusLine[1],
"Scrollback Mode", 15);
154 case HEX:
memcpy(&szStatusLine[
len / 2 - 1],
"HEX", 3);
break;
155 case DUMP:
memcpy(&szStatusLine[
len / 2 - 2],
"DUMP", 4);
break;
156 case DUMPB:
memcpy(&szStatusLine[
len / 2 - 5],
"BINARY DUMP", 11);
break;
159 memcpy(&szStatusLine[
len - 6],
"READY", 5);
160 szStatusLine[
len] = 0;
181 long iScrollBegin, iScrollLast;
197 int strippedlines = (*strip)(stripped, stripped + iScrollLast,
222 szStatusLine[8] =
':';
223 szStatusLine[34] =
'-';
226 for (
c = 0;
c < 16;
c++){
232 hexify((
char)
p, &szStatusLine[11 + 3*
c], 2);
234 szStatusLine[60 +
c] = (
char)
p;
236 szStatusLine[60 +
c] =
'.';
239 for(
int j = 0;
j < 16;
j++) {
255 szStatusLine[
c] =
'.';
257 szStatusLine[
c] =
'\0';
271 szStatusLine[
c] =
' ';
273 szStatusLine[
c] =
'\0';
284 if(stripped[ch] ==
'\n')
lines++;
285 if(stripped[ch] ==
'\r')
x = 1;
293 else p = stripped[ch];
295 case 10: done =
TRUE;
break;
296 case 13:
c = 0;
break;
297 default: szStatusLine[
c] =
p;
360 delete[] szStatusLine;
ACPI_SIZE strlen(const char *String)
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
BOOL WINAPI GetConsoleScreenBufferInfo(IN HANDLE hConsoleOutput, OUT PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo)
#define DUMP(Command, Pad)
int get_status_bg() const
int get_status_fg() const
const char * get_scroll_mode() const
int get_scroll_fg() const
int get_scroll_bg() const
#define stricmp(_String1, _String2)
BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleOutputAttribute(IN HANDLE hConsoleOutput, IN CONST WORD *lpAttribute, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfAttrsWritten)
GLint GLint GLint GLint GLint x
GLdouble GLdouble GLdouble r
GLint GLint GLsizei width
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
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 GLint GLint j
_Check_return_ _CRTIMP int __cdecl iscntrl(_In_ int _C)
#define memcpy(s1, s2, n)
struct task_struct * current
static CONSOLE_SCREEN_BUFFER_INFO ConsoleInfo
void saveScreen(CHAR_INFO *chiBuffer)
void restoreScreen(CHAR_INFO *chiBuffer)
#define STD_OUTPUT_HANDLE
#define WriteConsoleOutputCharacter