#include "precomp.h"
Go to the source code of this file.
|
int | DummyStripBuffer (char *start, char *end, int width) |
|
static BOOL | WriteConsoleOutputCharAndAttribute (HANDLE hConsoleOutput, CHAR *lpWriteBuffer, WORD wAttrib, SHORT sX, SHORT sY) |
|
static void | hexify (int x, char *str, int len) |
|
static int | setmaxlines (int iDisplay, int iScrollSize, int strippedlines, int con_width) |
|
static void | setstatusline (char *szStatusLine, int len, int iDisplay) |
|
◆ anonymous enum
Enumerator |
---|
HEX | |
DUMP | |
DUMPB | |
TEXTB | |
Definition at line 43 of file tscroll.cpp.
◆ DummyStripBuffer()
◆ hexify()
Definition at line 130 of file tscroll.cpp.
130 {
131 for(
int j =
len - 1;
j >= 0;
j--) {
136 }
137}
GLint GLint GLint GLint GLint x
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
Referenced by TScroller::ScrollBack().
◆ setmaxlines()
static int setmaxlines |
( |
int |
iDisplay, |
|
|
int |
iScrollSize, |
|
|
int |
strippedlines, |
|
|
int |
con_width |
|
) |
| |
|
static |
Definition at line 139 of file tscroll.cpp.
140 {
141 switch(iDisplay) {
142 case HEX:
return(iScrollSize / 16);
break;
144 case DUMPB:
return(iScrollSize / con_width);
break;
145 case TEXTB:
return(strippedlines);
break;
146 }
147 return 0;
148}
Referenced by TScroller::ScrollBack().
◆ setstatusline()
static void setstatusline |
( |
char * |
szStatusLine, |
|
|
int |
len, |
|
|
int |
iDisplay |
|
) |
| |
|
static |
Definition at line 150 of file tscroll.cpp.
150 {
152 memcpy(&szStatusLine[1],
"Scrollback Mode", 15);
153 switch(iDisplay) {
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;
158 }
159 memcpy(&szStatusLine[
len - 6],
"READY", 5);
160 szStatusLine[
len] = 0;
161}
#define memcpy(s1, s2, n)
Referenced by TScroller::ScrollBack().
◆ WriteConsoleOutputCharAndAttribute()
Definition at line 97 of file tscroll.cpp.
102 {
103
105 const LPDWORD lpcWritten = &cWritten;
106
108 COORD coordWrite = {sX,sY};
110 for (
unsigned int i = 0;
i < cWriteCells;
i++)
111 lpwAttribute[
i] = wAttrib;
113 hConsoleOutput,
114 lpwAttribute,
115 cWriteCells,
116 coordWrite,
117 lpcWritten
118 );
120 hConsoleOutput,
121 lpWriteBuffer,
122 cWriteCells,
123 coordWrite,
124 lpcWritten
125 );
126 delete [] lpwAttribute;
127 return 1;
128}
ACPI_SIZE strlen(const char *String)
BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleOutputAttribute(IN HANDLE hConsoleOutput, IN CONST WORD *lpAttribute, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfAttrsWritten)
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
#define WriteConsoleOutputCharacter
Referenced by TScroller::ScrollBack().