Rev | Line | |
---|
[1] | 1 | 'api_console.sbp
|
---|
| 2 |
|
---|
| 3 | #ifndef _INC_CONSOLE
|
---|
| 4 | #define _INC_CONSOLE
|
---|
| 5 |
|
---|
| 6 | 'console text color
|
---|
| 7 | Const FOREGROUND_BLUE = &H0001
|
---|
| 8 | Const FOREGROUND_GREEN = &H0002
|
---|
| 9 | Const FOREGROUND_RED = &H0004
|
---|
| 10 | Const FOREGROUND_INTENSITY = &H0008
|
---|
| 11 | Const BACKGROUND_BLUE = &H0010
|
---|
| 12 | Const BACKGROUND_GREEN = &H0020
|
---|
| 13 | Const BACKGROUND_RED = &H0040
|
---|
| 14 | Const BACKGROUND_INTENSITY = &H0080
|
---|
| 15 |
|
---|
| 16 |
|
---|
| 17 | Declare Function AllocConsole Lib "kernel32" () As Long
|
---|
| 18 | Declare Function FreeConsole Lib "kernel32" () As Long
|
---|
| 19 |
|
---|
| 20 | Declare Function SetConsoleCursorPosition Lib "kernel32" (hConsoleOutput As HANDLE, dwCursorPosition As DWord) As Long
|
---|
| 21 |
|
---|
| 22 | Declare Function ReadConsole Lib "kernel32" Alias "ReadConsoleA" (hConsoleInput As HANDLE, pBuffer As VoidPtr, nNumberOfCharsToRead As DWord, ByRef NumberOfCharsRead As DWord, pReserved As VoidPtr) As BOOL
|
---|
| 23 | Declare Function WriteConsole Lib "kernel32" Alias "WriteConsoleA" (hConsoleOutput As HANDLE, pBuffer As VoidPtr, nNumberOfCharsToWrite As DWord, ByRef NumberOfCharsWritten As DWord, pReserved As VoidPtr) As BOOL
|
---|
| 24 |
|
---|
| 25 | Declare Function CreateConsoleScreenBuffer Lib "kernel32" (dwDesiredAccess As DWord, dwShareMode As DWord, pSecurityAttributes As *SECURITY_ATTRIBUTES, dwFlags As DWord, pScreenBufferData As VoidPtr) As HANDLE
|
---|
| 26 |
|
---|
| 27 | Declare Function SetConsoleActiveScreenBuffer Lib "kernel32" (hConsoleOutput As HANDLE) As BOOL
|
---|
| 28 |
|
---|
| 29 | #endif '_INC_CONSOLE
|
---|
Note:
See
TracBrowser
for help on using the repository browser.