[10010] | 1 | /* $Id: conbuffervio.h,v 1.3 2003-04-11 12:08:36 sandervl Exp $ */
|
---|
[4502] | 2 |
|
---|
| 3 | /*
|
---|
| 4 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
| 5 | * Win32 Console Subsystem for OS/2
|
---|
| 6 | * 1998/02/11 PH Patrick Haller (haller@zebra.fh-weingarten.de)
|
---|
| 7 | */
|
---|
| 8 |
|
---|
| 9 | #ifndef _CONSOLE_BUFFERVIO_H_
|
---|
| 10 | #define _CONSOLE_BUFFERVIO_H_
|
---|
| 11 |
|
---|
| 12 |
|
---|
| 13 | /*****************************************************************************
|
---|
| 14 | * Remark *
|
---|
| 15 | *****************************************************************************
|
---|
| 16 |
|
---|
| 17 | */
|
---|
| 18 |
|
---|
| 19 |
|
---|
| 20 | /*****************************************************************************
|
---|
| 21 | * Resources *
|
---|
| 22 | *****************************************************************************/
|
---|
| 23 |
|
---|
| 24 |
|
---|
| 25 | /*****************************************************************************
|
---|
| 26 | * Includes *
|
---|
| 27 | *****************************************************************************/
|
---|
| 28 |
|
---|
| 29 | //#include <win32type.h>
|
---|
| 30 | #include "handlemanager.h"
|
---|
| 31 | #include "HMDevice.h"
|
---|
| 32 | #include "console2.h"
|
---|
| 33 | #include "conbuffer.h"
|
---|
| 34 |
|
---|
| 35 |
|
---|
| 36 | /*****************************************************************************
|
---|
| 37 | * ConsoleBuffer - does all the writing to an internal line buffer array *
|
---|
| 38 | * if this buffer is the active one, also does a screen updt *
|
---|
| 39 | *****************************************************************************/
|
---|
| 40 |
|
---|
| 41 | class HMDeviceConsoleVioBufferClass : public HMDeviceConsoleBufferClass
|
---|
| 42 | {
|
---|
| 43 | public:
|
---|
| 44 | HMDeviceConsoleVioBufferClass(LPCSTR lpDeviceName,
|
---|
| 45 | PICONSOLEINPUT piConsoleInput,
|
---|
| 46 | PICONSOLEGLOBALS piConsoleGlobals)
|
---|
| 47 | : HMDeviceConsoleBufferClass(lpDeviceName, piConsoleInput, piConsoleGlobals)
|
---|
| 48 | {
|
---|
| 49 | };
|
---|
| 50 |
|
---|
| 51 | /* this is a handler method for calls to WriteFile() */
|
---|
| 52 | virtual BOOL WriteFile (PHMHANDLEDATA pHMHandleData,
|
---|
| 53 | LPCVOID lpBuffer,
|
---|
| 54 | DWORD nNumberOfBytesToWrite,
|
---|
| 55 | LPDWORD lpNumberOfBytesWritten,
|
---|
[7549] | 56 | LPOVERLAPPED lpOverlapped,
|
---|
| 57 | LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine);
|
---|
[4502] | 58 |
|
---|
[10010] | 59 | virtual DWORD FillConsoleOutputAttribute(PHMHANDLEDATA pHMHandleData,
|
---|
| 60 | WORD wAttribute,
|
---|
| 61 | DWORD nLength,
|
---|
| 62 | COORD dwWriteCoord,
|
---|
| 63 | LPDWORD lpNumberOfAttrsWritten);
|
---|
| 64 |
|
---|
[21916] | 65 | DWORD FillConsoleOutputCharacterA(PHMHANDLEDATA pHMHandleData,
|
---|
| 66 | UCHAR ucCharacter,
|
---|
| 67 | DWORD nLength,
|
---|
| 68 | COORD dwWriteCoord,
|
---|
| 69 | LPDWORD lpNumberOfCharsWritten);
|
---|
[10010] | 70 |
|
---|
[4502] | 71 | };
|
---|
| 72 |
|
---|
| 73 | #endif /* _CONSOLE_BUFFERVIO_H_ */
|
---|
| 74 |
|
---|