Difference between revisions of "Unit Console"
Line 1,023: | Line 1,023: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Called only during system startup | | Called only during system startup | ||
|- | |- | ||
Line 1,038: | Line 1,038: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to open | | The console device to open | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 1,053: | Line 1,053: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to close | | The console device to close | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 1,068: | Line 1,068: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to clear | | The console device to clear | ||
|- | |- | ||
− | ! | + | ! Color |
| The color to use when clearing the console | | The color to use when clearing the console | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| Color must be specified in the default color format (See COLOR_FORMAT_DEFAULT) | | Color must be specified in the default color format (See COLOR_FORMAT_DEFAULT) | ||
|- | |- | ||
Line 1,089: | Line 1,089: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to scroll | | The console device to scroll | ||
|- | |- | ||
− | ! | + | ! X1 |
| The left edge of the area to scroll (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The left edge of the area to scroll (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Y1 |
| The top edge of the area to scroll (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The top edge of the area to scroll (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! X2 |
| The right edge of the area to scroll (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The right edge of the area to scroll (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Y2 |
| The bottom edge of the area to scroll (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The bottom edge of the area to scroll (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Count |
| The number of pixels or characters (depending on console mode) to scroll | | The number of pixels or characters (depending on console mode) to scroll | ||
|- | |- | ||
− | ! | + | ! Direction |
| The direction to scroll (eg CONSOLE_DIRECTION_UP) | | The direction to scroll (eg CONSOLE_DIRECTION_UP) | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 1,122: | Line 1,122: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to draw on | | The console device to draw on | ||
|- | |- | ||
− | ! | + | ! X1 |
| The left edge of the box (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The left edge of the box (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Y1 |
| The top edge of the box (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The top edge of the box (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! X2 |
| The right edge of the box (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The right edge of the box (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Y2 |
| The bottom edge of the box (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The bottom edge of the box (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Color |
| The color to draw with (eg COLOR_WHITE) | | The color to draw with (eg COLOR_WHITE) | ||
|- | |- | ||
− | ! | + | ! Width |
| The width of the box outline (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The width of the box outline (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| Color must be specified in the default color format (See COLOR_FORMAT_DEFAULT) | | Color must be specified in the default color format (See COLOR_FORMAT_DEFAULT) | ||
|- | |- | ||
Line 1,158: | Line 1,158: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to draw on | | The console device to draw on | ||
|- | |- | ||
− | ! | + | ! X1 |
| The left starting point of the line (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The left starting point of the line (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Y1 |
| The top starting point of the line (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The top starting point of the line (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! X2 |
| The right ending point of the line (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The right ending point of the line (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Y2 |
| The bottom ending point of the line (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The bottom ending point of the line (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Color |
| The color to draw with (eg COLOR_WHITE) | | The color to draw with (eg COLOR_WHITE) | ||
|- | |- | ||
− | ! | + | ! Width |
| The width of the line (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The width of the line (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| Color must be specified in the default color format (See COLOR_FORMAT_DEFAULT) | | Color must be specified in the default color format (See COLOR_FORMAT_DEFAULT) | ||
|- | |- | ||
Line 1,194: | Line 1,194: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to draw on | | The console device to draw on | ||
|- | |- | ||
− | ! | + | ! X1 |
| The left starting point of the line (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The left starting point of the line (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Y1 |
| The top starting point of the line (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The top starting point of the line (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! X2 |
| The right ending point of the line (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The right ending point of the line (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Y2 |
| The bottom ending point of the line (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The bottom ending point of the line (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Color |
| The color to draw with (eg COLOR_WHITE) | | The color to draw with (eg COLOR_WHITE) | ||
|- | |- | ||
− | ! | + | ! Width |
| The width of the line (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The width of the line (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| Color must be specified in the default color format (See COLOR_FORMAT_DEFAULT) | | Color must be specified in the default color format (See COLOR_FORMAT_DEFAULT) | ||
Character consoles may implement plot line but the default method only supports pixel consoles | Character consoles may implement plot line but the default method only supports pixel consoles | ||
Line 1,231: | Line 1,231: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to draw on | | The console device to draw on | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the font to draw with | | The handle of the font to draw with | ||
|- | |- | ||
− | ! | + | ! Ch |
| The character to draw | | The character to draw | ||
|- | |- | ||
− | ! | + | ! X |
| The left starting point of the character (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The left starting point of the character (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Y |
| The top starting point of the character (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The top starting point of the character (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Forecolor |
| The foreground color for the character (eg COLOR_WHITE) | | The foreground color for the character (eg COLOR_WHITE) | ||
|- | |- | ||
− | ! | + | ! Backcolor |
| The background color for the character (eg COLOR_BLACK) | | The background color for the character (eg COLOR_BLACK) | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| Forecolor and Backcolor must be specified in the default color format (See COLOR_FORMAT_DEFAULT) | | Forecolor and Backcolor must be specified in the default color format (See COLOR_FORMAT_DEFAULT) | ||
|- | |- | ||
Line 1,267: | Line 1,267: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to draw on | | The console device to draw on | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the font to draw with | | The handle of the font to draw with | ||
|- | |- | ||
− | ! | + | ! Text |
| The text to draw | | The text to draw | ||
|- | |- | ||
− | ! | + | ! X |
| The left starting point of the text (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The left starting point of the text (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Y |
| The top starting point of the text (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The top starting point of the text (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Forecolor |
| The foreground color for the text (eg COLOR_WHITE) | | The foreground color for the text (eg COLOR_WHITE) | ||
|- | |- | ||
− | ! | + | ! Backcolor |
| The background color for the text (eg COLOR_BLACK) | | The background color for the text (eg COLOR_BLACK) | ||
|- | |- | ||
− | ! | + | ! Len |
| The length of the text (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The length of the text (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| Forecolor and Backcolor must be specified in the default color format (See COLOR_FORMAT_DEFAULT) | | Forecolor and Backcolor must be specified in the default color format (See COLOR_FORMAT_DEFAULT) | ||
|- | |- | ||
Line 1,306: | Line 1,306: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to draw on | | The console device to draw on | ||
|- | |- | ||
− | ! | + | ! X |
| The column to draw the pixel (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The column to draw the pixel (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Y |
| The row to draw the pixel (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The row to draw the pixel (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Color |
| The color to draw with (eg COLOR_WHITE) | | The color to draw with (eg COLOR_WHITE) | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| Color must be specified in the default color format (See COLOR_FORMAT_DEFAULT) | | Color must be specified in the default color format (See COLOR_FORMAT_DEFAULT) | ||
|- | |- | ||
Line 1,333: | Line 1,333: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to draw on | | The console device to draw on | ||
|- | |- | ||
− | ! | + | ! X1 |
| The left edge of the block (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The left edge of the block (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Y1 |
| The top edge of the block (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The top edge of the block (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! X2 |
| The right edge of the block (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The right edge of the block (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Y2 |
| The bottom edge of the block (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The bottom edge of the block (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Color |
| The color to draw with (eg COLOR_WHITE) | | The color to draw with (eg COLOR_WHITE) | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| Color must be specified in the default color format (See COLOR_FORMAT_DEFAULT) | | Color must be specified in the default color format (See COLOR_FORMAT_DEFAULT) | ||
|- | |- | ||
Line 1,366: | Line 1,366: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to draw on | | The console device to draw on | ||
|- | |- | ||
− | ! | + | ! X |
| The column center point of the circle (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The column center point of the circle (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Y |
| The row center point of the circle (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The row center point of the circle (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Color |
| The color to draw with (eg COLOR_WHITE) | | The color to draw with (eg COLOR_WHITE) | ||
|- | |- | ||
− | ! | + | ! Width |
| The width of the circle outline (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The width of the circle outline (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Radius |
| The radius of the circle (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The radius of the circle (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| Color must be specified in the default color format (See COLOR_FORMAT_DEFAULT) | | Color must be specified in the default color format (See COLOR_FORMAT_DEFAULT) | ||
Character consoles may implement draw circle but the default method only supports pixel consoles | Character consoles may implement draw circle but the default method only supports pixel consoles | ||
Line 1,400: | Line 1,400: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to draw on | | The console device to draw on | ||
|- | |- | ||
− | ! | + | ! X |
| The starting column of the image (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The starting column of the image (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Y |
| The starting row of the image (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The starting row of the image (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Buffer |
| Pointer to a block of memory containing the pixels of the image in a contiguous block of rows | | Pointer to a block of memory containing the pixels of the image in a contiguous block of rows | ||
|- | |- | ||
− | ! | + | ! Width |
| The number of columns in the image (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The number of columns in the image (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Height |
| The number of rows in the image (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The number of rows in the image (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Format |
| The color format of the image (eg COLOR_FORMAT_RGB24) | | The color format of the image (eg COLOR_FORMAT_RGB24) | ||
|- | |- | ||
− | ! | + | ! Skip |
| The number of pixels to skip in the buffer after each row (Optional) | | The number of pixels to skip in the buffer after each row (Optional) | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 1,436: | Line 1,436: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to draw on | | The console device to draw on | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the console window to draw | | The handle of the console window to draw | ||
|- | |- | ||
− | ! | + | ! Flags |
| Flags to specify what should be drawn (eg WINDOW_DRAW_FLAG_BORDER) | | Flags to specify what should be drawn (eg WINDOW_DRAW_FLAG_BORDER) | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 1,457: | Line 1,457: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to read from | | The console device to read from | ||
|- | |- | ||
− | ! | + | ! X |
| The column to read the pixel from (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The column to read the pixel from (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Y |
| The row to read the pixel from (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The row to read the pixel from (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Color |
| The color value read from the console (eg COLOR_WHITE) | | The color value read from the console (eg COLOR_WHITE) | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| Color is returned in the default color format (See COLOR_FORMAT_DEFAULT) | | Color is returned in the default color format (See COLOR_FORMAT_DEFAULT) | ||
|- | |- | ||
Line 1,484: | Line 1,484: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to read from | | The console device to read from | ||
|- | |- | ||
− | ! | + | ! X |
| The starting column to read the image from (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The starting column to read the image from (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Y |
| The starting row to read the image from (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The starting row to read the image from (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Buffer |
| Pointer to a block of memory large enough to hold the pixels of the image in a contiguous block of rows | | Pointer to a block of memory large enough to hold the pixels of the image in a contiguous block of rows | ||
|- | |- | ||
− | ! | + | ! Width |
| The number of columns to store in the image (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The number of columns to store in the image (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Height |
| The number of rows to store in the image (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The number of rows to store in the image (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Format |
| The color format to store the image in (eg COLOR_FORMAT_RGB24) | | The color format to store the image in (eg COLOR_FORMAT_RGB24) | ||
|- | |- | ||
− | ! | + | ! Skip |
| The number of pixels to skip in the buffer after each row (Optional) | | The number of pixels to skip in the buffer after each row (Optional) | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 1,520: | Line 1,520: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to output to | | The console device to output to | ||
|- | |- | ||
− | ! | + | ! Source |
| The X and Y point in the source buffer to copy text from (Characters) | | The X and Y point in the source buffer to copy text from (Characters) | ||
|- | |- | ||
− | ! | + | ! Dest |
| The X and Y point on the console device to copy text to (Pixels for CONSOLE_MODE_PIXEL/Characters for CONSOLE_MODE_CHARACTER) | | The X and Y point on the console device to copy text to (Pixels for CONSOLE_MODE_PIXEL/Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Buffer |
| A pointer to a buffer of TConsoleChar structures which represent rows of text | | A pointer to a buffer of TConsoleChar structures which represent rows of text | ||
|- | |- | ||
− | ! | + | ! Width |
| The width of the area to be output (Characters) | | The width of the area to be output (Characters) | ||
|- | |- | ||
− | ! | + | ! Height |
| The height of the area to be output (Characters) | | The height of the area to be output (Characters) | ||
|- | |- | ||
− | ! | + | ! Skip |
| The number of characters to skip in the buffer after each row (Optional) | | The number of characters to skip in the buffer after each row (Optional) | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
− | | Source, Width, Heigth and Skip are based on character rows and columns not screen pixels | + | | Source, Width, Heigth and Skip are based on character rows and columns not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 1,556: | Line 1,556: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to copy on | | The console device to copy on | ||
|- | |- | ||
− | ! | + | ! Source |
| The starting point for the source of the copy (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The starting point for the source of the copy (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Dest |
| The starting point for the destination of the copy (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The starting point for the destination of the copy (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Width |
| The number of columns in the image (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The number of columns in the image (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Height |
| The number of rows in the image (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The number of rows in the image (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 1,583: | Line 1,583: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to create the caret on | | The console device to create the caret on | ||
|- | |- | ||
− | ! | + | ! Width |
| The width of the new caret (Pixels for CONSOLE_MODE_PIXEL / Always 1 for CONSOLE_MODE_CHARACTER) | | The width of the new caret (Pixels for CONSOLE_MODE_PIXEL / Always 1 for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Height |
| The height of the new caret (Pixels for CONSOLE_MODE_PIXEL / Always 1 for CONSOLE_MODE_CHARACTER) | | The height of the new caret (Pixels for CONSOLE_MODE_PIXEL / Always 1 for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! OffsetX |
| The X offset of the new caret (Optional)(Pixels for CONSOLE_MODE_PIXEL / Always 0 for CONSOLE_MODE_CHARACTER) | | The X offset of the new caret (Optional)(Pixels for CONSOLE_MODE_PIXEL / Always 0 for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! OffsetY |
| The Y offset of the new caret (Optional)(Pixels for CONSOLE_MODE_PIXEL / Always 0 for CONSOLE_MODE_CHARACTER) | | The Y offset of the new caret (Optional)(Pixels for CONSOLE_MODE_PIXEL / Always 0 for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Return |
| Handle to new caret on success or INVALID_HANDLE_VALUE on failure | | Handle to new caret on success or INVALID_HANDLE_VALUE on failure | ||
|- | |- | ||
Line 1,610: | Line 1,610: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to delete the caret on | | The console device to delete the caret on | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the caret to delete (as returned from ConsoleDeviceAddCaret) | | The handle of the caret to delete (as returned from ConsoleDeviceAddCaret) | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 1,628: | Line 1,628: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to update the caret on | | The console device to update the caret on | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the caret to update (as returned from ConsoleDeviceAddCaret) | | The handle of the caret to update (as returned from ConsoleDeviceAddCaret) | ||
|- | |- | ||
− | ! | + | ! X |
| The X position of the caret (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The X position of the caret (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Y |
| The Y position of the caret (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The Y position of the caret (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Visible |
| If true then show the caret else hide it | | If true then show the caret else hide it | ||
|- | |- | ||
− | ! | + | ! Blink |
| If true then blink the caret at the default blink rate | | If true then blink the caret at the default blink rate | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 1,658: | Line 1,658: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to set the cursor | | The console device to set the cursor | ||
|- | |- | ||
− | ! | + | ! Width |
| The width of the cursor in characters | | The width of the cursor in characters | ||
|- | |- | ||
− | ! | + | ! Height |
| The height of the cursor in characters | | The height of the cursor in characters | ||
|- | |- | ||
− | ! | + | ! Chars |
| A buffer containing the cursor characters | | A buffer containing the cursor characters | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| For devices that don't support hardware mouse cursor a software cursor will be implemented | | For devices that don't support hardware mouse cursor a software cursor will be implemented | ||
If chars is nil then the default cursor will be used | If chars is nil then the default cursor will be used | ||
Line 1,686: | Line 1,686: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to update the cursor | | The console device to update the cursor | ||
|- | |- | ||
− | ! | + | ! Enabled |
| If true then show the cursor else hide it | | If true then show the cursor else hide it | ||
|- | |- | ||
− | ! | + | ! X |
| The cursor X location in characters | | The cursor X location in characters | ||
|- | |- | ||
− | ! | + | ! Y |
| The cursor Y location in characters | | The cursor Y location in characters | ||
|- | |- | ||
− | ! | + | ! Relative |
| If true then X and Y are considered relative to the current position | | If true then X and Y are considered relative to the current position | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| For devices that don't support hardware mouse cursor a software cursor will be implemented | | For devices that don't support hardware mouse cursor a software cursor will be implemented | ||
|- | |- | ||
Line 1,716: | Line 1,716: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to get from | | The console device to get from | ||
|- | |- | ||
− | ! | + | ! Position |
| The console position to get the coordinates for (eg CONSOLE_POSITION_FULL) | | The console position to get the coordinates for (eg CONSOLE_POSITION_FULL) | ||
|- | |- | ||
− | ! | + | ! X1 |
| The left edge of the console position (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The left edge of the console position (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Y1 |
| The top edge of the console position (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The top edge of the console position (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! X2 |
| The right edge of the console position (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The right edge of the console position (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Y2 |
| The bottom edge of the console position (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | | The bottom edge of the console position (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER) | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 1,746: | Line 1,746: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to get properties from | | The console device to get properties from | ||
|- | |- | ||
− | ! | + | ! Properties |
| Pointer to a TConsoleProperties structure to return | | Pointer to a TConsoleProperties structure to return | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 1,764: | Line 1,764: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to check | | The console device to check | ||
|- | |- | ||
− | ! | + | ! Flag |
| The console flag to check (eg CONSOLE_FLAG_FULLSCREEN) | | The console flag to check (eg CONSOLE_FLAG_FULLSCREEN) | ||
|- | |- | ||
− | ! | + | ! Return |
− | | True if flag is supported, False if not or on error | + | | True if flag is supported, False if not or on error. |
|- | |- | ||
|} | |} | ||
Line 1,782: | Line 1,782: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to set or clear the flag on | | The console device to set or clear the flag on | ||
|- | |- | ||
− | ! | + | ! Flag |
| The console flag to set or clear (eg CONSOLE_FLAG_LINE_WRAP) | | The console flag to set or clear (eg CONSOLE_FLAG_LINE_WRAP) | ||
|- | |- | ||
− | ! | + | ! Clear |
| If true clear the flag, else set it | | If true clear the flag, else set it | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 1,803: | Line 1,803: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to get from | | The console device to get from | ||
|- | |- | ||
− | ! | + | ! Return |
| The mode of the console (eg CONSOLE_MODE_PIXEL) or CONSOLE_MODE_NONE on error | | The mode of the console (eg CONSOLE_MODE_PIXEL) or CONSOLE_MODE_NONE on error | ||
|- | |- | ||
Line 1,818: | Line 1,818: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to get from | | The console device to get from | ||
|- | |- | ||
− | ! | + | ! Return |
| The current state of the console (eg CONSOLE_STATE_OPEN) | | The current state of the console (eg CONSOLE_STATE_OPEN) | ||
|- | |- | ||
Line 1,833: | Line 1,833: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Return |
| Pointer to new Console entry or nil if Console could not be created | | Pointer to new Console entry or nil if Console could not be created | ||
|- | |- | ||
Line 1,845: | Line 1,845: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Size |
| Size in bytes to allocate for new Console (Including the Console entry) | | Size in bytes to allocate for new Console (Including the Console entry) | ||
|- | |- | ||
− | ! | + | ! Return |
| Pointer to new Console entry or nil if Console could not be created | | Pointer to new Console entry or nil if Console could not be created | ||
|- | |- | ||
Line 1,860: | Line 1,860: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to destroy | | The console device to destroy | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 1,875: | Line 1,875: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to register | | The console device to register | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 1,890: | Line 1,890: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to deregister | | The console device to deregister | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 1,905: | Line 1,905: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! ConsoleId |
| The ID number of the console to find | | The ID number of the console to find | ||
|- | |- | ||
− | ! | + | ! Return |
| Pointer to console device entry or nil if not found | | Pointer to console device entry or nil if not found | ||
|- | |- | ||
Line 1,920: | Line 1,920: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Device |
| Pointer to the related device to find | | Pointer to the related device to find | ||
|- | |- | ||
− | ! | + | ! Return |
| Pointer to console device entry or nil if not found | | Pointer to console device entry or nil if not found | ||
|- | |- | ||
Line 1,935: | Line 1,935: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Name |
| The name of the console to find (eg Console0) | | The name of the console to find (eg Console0) | ||
|- | |- | ||
− | ! | + | ! Return |
| Pointer to console device entry or nil if not found | | Pointer to console device entry or nil if not found | ||
|- | |- | ||
Line 1,950: | Line 1,950: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Description |
| The description of the console to find (eg Framebuffer Console (Framebuffer0)) | | The description of the console to find (eg Framebuffer Console (Framebuffer0)) | ||
|- | |- | ||
− | ! | + | ! Return |
| Pointer to console device entry or nil if not found | | Pointer to console device entry or nil if not found | ||
|- | |- | ||
Line 1,965: | Line 1,965: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Callback |
| The callback function to call for each console in the table | | The callback function to call for each console in the table | ||
|- | |- | ||
− | ! | + | ! Data |
| A private data pointer to pass to callback for each console in the table | | A private data pointer to pass to callback for each console in the table | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 1,983: | Line 1,983: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to notify changes for (Optional, pass nil for all console devices) | | The console device to notify changes for (Optional, pass nil for all console devices) | ||
|- | |- | ||
− | ! | + | ! Callback |
| The function to call when a notification event occurs | | The function to call when a notification event occurs | ||
|- | |- | ||
− | ! | + | ! Data |
| A private data pointer to pass to callback when a notification event occurs | | A private data pointer to pass to callback when a notification event occurs | ||
|- | |- | ||
− | ! | + | ! Notification |
| The events to register for notification of (eg DEVICE_NOTIFICATION_REGISTER) | | The events to register for notification of (eg DEVICE_NOTIFICATION_REGISTER) | ||
|- | |- | ||
− | ! | + | ! Flags |
| The flags to control the notification (eg NOTIFIER_FLAG_WORKER) | | The flags to control the notification (eg NOTIFIER_FLAG_WORKER) | ||
|- | |- | ||
Line 2,010: | Line 2,010: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to create the new window on | | The console device to create the new window on | ||
|- | |- | ||
− | ! | + | ! Position |
| The console position to create the new window at (eg CONSOLE_POSITION_FULL) | | The console position to create the new window at (eg CONSOLE_POSITION_FULL) | ||
|- | |- | ||
− | ! | + | ! Default |
| If true allow the new window to be the default window if there is no current default | | If true allow the new window to be the default window if there is no current default | ||
|- | |- | ||
− | ! | + | ! Return |
| Handle to new Console window or INVALID_HANDLE_VALUE if Console window could not be created | | Handle to new Console window or INVALID_HANDLE_VALUE if Console window could not be created | ||
|- | |- | ||
Line 2,031: | Line 2,031: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to create the new window on | | The console device to create the new window on | ||
|- | |- | ||
− | ! | + | ! Font |
| The handle of the default font for the new console window | | The handle of the default font for the new console window | ||
|- | |- | ||
− | ! | + | ! Size |
| The size in bytes to allocate for the new window entry (Defaults to SizeOf(TConsoleWindow)) | | The size in bytes to allocate for the new window entry (Defaults to SizeOf(TConsoleWindow)) | ||
|- | |- | ||
− | ! | + | ! State |
| Handle to new Console window or INVALID_HANDLE_VALUE if Console window could not be created | | Handle to new Console window or INVALID_HANDLE_VALUE if Console window could not be created | ||
|- | |- | ||
− | ! | + | ! Mode |
| The mode of the new console window (Normally WINDOW_MODE_TEXT) | | The mode of the new console window (Normally WINDOW_MODE_TEXT) | ||
|- | |- | ||
− | ! | + | ! Position |
| The console position to create the new window at (eg CONSOLE_POSITION_FULL) | | The console position to create the new window at (eg CONSOLE_POSITION_FULL) | ||
|- | |- | ||
− | ! | + | ! Default |
| If true allow the new window to be the default window if there is no current default | | If true allow the new window to be the default window if there is no current default | ||
|- | |- | ||
− | ! | + | ! Return |
| Handle to new Console window or INVALID_HANDLE_VALUE if Console window could not be created | | Handle to new Console window or INVALID_HANDLE_VALUE if Console window could not be created | ||
|- | |- | ||
Line 2,064: | Line 2,064: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to destroy | | The handle of the window to destroy | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 2,079: | Line 2,079: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to show | | The handle of the window to show | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 2,094: | Line 2,094: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to hide | | The handle of the window to hide | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 2,109: | Line 2,109: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to activate | | The handle of the window to activate | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 2,124: | Line 2,124: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to deactivate | | The handle of the window to deactivate | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| On success there will be no active window set | | On success there will be no active window set | ||
|- | |- | ||
Line 2,142: | Line 2,142: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to change the active window on | | The console device to change the active window on | ||
|- | |- | ||
− | ! | + | ! Visible |
| If true only return windows that are visible | | If true only return windows that are visible | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 2,160: | Line 2,160: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to change the active window on | | The console device to change the active window on | ||
|- | |- | ||
− | ! | + | ! Visible |
| If true only return windows that are visible | | If true only return windows that are visible | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 2,178: | Line 2,178: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to find the window on | | The console device to find the window on | ||
|- | |- | ||
− | ! | + | ! X |
| The X coordinate to find the window for | | The X coordinate to find the window for | ||
|- | |- | ||
− | ! | + | ! Y |
| The Y coordinate to find the window for | | The Y coordinate to find the window for | ||
|- | |- | ||
− | ! | + | ! Visible |
| If true only return windows that are visible | | If true only return windows that are visible | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, X and Y are based on character columns not screen pixels | + | | For Text Console functions, X and Y are based on character columns not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 2,205: | Line 2,205: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to find the window on | | The console device to find the window on | ||
|- | |- | ||
− | ! | + | ! Position |
| The window position to find (eg CONSOLE_POSITION_FULL) | | The window position to find (eg CONSOLE_POSITION_FULL) | ||
|- | |- | ||
− | ! | + | ! Return |
| The handle of the existing window or INVALID_HANDLE_VALUE if not found | | The handle of the existing window or INVALID_HANDLE_VALUE if not found | ||
|- | |- | ||
Line 2,223: | Line 2,223: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to enumerate windows for | | The console device to enumerate windows for | ||
|- | |- | ||
− | ! | + | ! Callback |
| The function to call for each window enumerated | | The function to call for each window enumerated | ||
|- | |- | ||
− | ! | + | ! Data |
| A pointer to private data to be passed to the callback (Optional) | | A pointer to private data to be passed to the callback (Optional) | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 2,244: | Line 2,244: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to check | | The handle of the window to check | ||
|- | |- | ||
− | ! | + | ! Flag |
| The window flag to check for (eg WINDOW_FLAG_LINE_WRAP") | | The window flag to check for (eg WINDOW_FLAG_LINE_WRAP") | ||
|- | |- | ||
− | ! | + | ! Return |
− | | True if the flag is set, False if not set | + | | True if the flag is set, False if not set. |
|- | |- | ||
|} | |} | ||
Line 2,262: | Line 2,262: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to set or clear the flag on | | The handle of the window to set or clear the flag on | ||
|- | |- | ||
− | ! | + | ! Flag |
| The window flag to set or clear (eg WINDOW_FLAG_LINE_WRAP) | | The window flag to set or clear (eg WINDOW_FLAG_LINE_WRAP) | ||
|- | |- | ||
− | ! | + | ! Clear |
| If true clear the flag, else set it | | If true clear the flag, else set it | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 2,283: | Line 2,283: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get the mode for | | The handle of the window to get the mode for | ||
|- | |- | ||
− | ! | + | ! Return |
| The window mode (eg WINDOW_MODE_TEXT) | | The window mode (eg WINDOW_MODE_TEXT) | ||
|- | |- | ||
Line 2,298: | Line 2,298: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get the state for | | The handle of the window to get the state for | ||
|- | |- | ||
− | ! | + | ! Return |
| The window state (eg WINDOW_STATE_INVISIBLE) | | The window state (eg WINDOW_STATE_INVISIBLE) | ||
|- | |- | ||
Line 2,313: | Line 2,313: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get the position for | | The handle of the window to get the position for | ||
|- | |- | ||
− | ! | + | ! Return |
| The window position (eg CONSOLE_POSITION_FULL) | | The window position (eg CONSOLE_POSITION_FULL) | ||
|- | |- | ||
Line 2,328: | Line 2,328: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to set the position for | | The handle of the window to set the position for | ||
|- | |- | ||
− | ! | + | ! Position |
| The new window position to set | | The new window position to set | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| The function will return ERROR_INVALID_PARAMETER if another window exists at the position | | The function will return ERROR_INVALID_PARAMETER if another window exists at the position | ||
|- | |- | ||
Line 2,349: | Line 2,349: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get the properties from | | The handle of the window to get the properties from | ||
|- | |- | ||
− | ! | + | ! Properties |
| Pointer to a TWindowProperties structure to fill in | | Pointer to a TWindowProperties structure to fill in | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 2,367: | Line 2,367: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get MinX for | | The handle of the window to get MinX for | ||
|- | |- | ||
− | ! | + | ! Return |
| The minimum X value for the current window viewport | | The minimum X value for the current window viewport | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, X is based on character columns not screen pixels | + | | For Text Console functions, X is based on character columns not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 2,385: | Line 2,385: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get MinY for | | The handle of the window to get MinY for | ||
|- | |- | ||
− | ! | + | ! Return |
| The minimum Y value for the current window viewport | | The minimum Y value for the current window viewport | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, Y is based on character rows not screen pixels | + | | For Text Console functions, Y is based on character rows not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 2,403: | Line 2,403: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get MaxX for | | The handle of the window to get MaxX for | ||
|- | |- | ||
− | ! | + | ! Return |
| The maximum X value for the current window viewport | | The maximum X value for the current window viewport | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, X is based on character columns not screen pixels | + | | For Text Console functions, X is based on character columns not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 2,421: | Line 2,421: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get MaxY for | | The handle of the window to get MaxY for | ||
|- | |- | ||
− | ! | + | ! Return |
| The maximum Y value for the current window viewport | | The maximum Y value for the current window viewport | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, Y is based on character rows not screen pixels | + | | For Text Console functions, Y is based on character rows not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 2,439: | Line 2,439: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get the rectangle for | | The handle of the window to get the rectangle for | ||
|- | |- | ||
− | ! | + | ! Return |
| The rectangle of the current window viewport | | The rectangle of the current window viewport | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, Rect is based on character rows and columns not screen pixels | + | | For Text Console functions, Rect is based on character rows and columns not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 2,457: | Line 2,457: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to set the rectangle for | | The handle of the window to set the rectangle for | ||
|- | |- | ||
− | ! | + | ! Rect |
| The rectangle to set for the window viewport | | The rectangle to set for the window viewport | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, Rect is based on character rows and columns not screen pixels | + | | For Text Console functions, Rect is based on character rows and columns not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 2,478: | Line 2,478: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to reset the viewport for | | The handle of the window to reset the viewport for | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 2,493: | Line 2,493: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get the viewport for | | The handle of the window to get the viewport for | ||
|- | |- | ||
− | ! | + | ! X1 |
| The left edge of the current viewport | | The left edge of the current viewport | ||
|- | |- | ||
− | ! | + | ! Y1 |
| The top edge of the current viewport | | The top edge of the current viewport | ||
|- | |- | ||
− | ! | + | ! X2 |
| The right edge of the current viewport | | The right edge of the current viewport | ||
|- | |- | ||
− | ! | + | ! Y2 |
| The bottom edge of the current viewport | | The bottom edge of the current viewport | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, Viewport is based on character rows and columns not screen pixels | + | | For Text Console functions, Viewport is based on character rows and columns not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 2,523: | Line 2,523: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get the viewport for | | The handle of the window to get the viewport for | ||
|- | |- | ||
− | ! | + | ! X1 |
| The left edge of the window viewport | | The left edge of the window viewport | ||
|- | |- | ||
− | ! | + | ! Y1 |
| The top edge of the window viewport | | The top edge of the window viewport | ||
|- | |- | ||
− | ! | + | ! X2 |
| The right edge of the window viewport | | The right edge of the window viewport | ||
|- | |- | ||
− | ! | + | ! Y2 |
| The bottom edge of the window viewport | | The bottom edge of the window viewport | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, Viewport is based on character rows and columns not screen pixels | + | | For Text Console functions, Viewport is based on character rows and columns not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 2,553: | Line 2,553: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to reset the viewport for | | The handle of the window to reset the viewport for | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure} | | ERROR_SUCCESS if completed or another error code on failure} | ||
|- | |- | ||
Line 2,568: | Line 2,568: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get X for | | The handle of the window to get X for | ||
|- | |- | ||
− | ! | + | ! Return |
| The X value for the window | | The X value for the window | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, X is based on character columns not screen pixels | + | | For Text Console functions, X is based on character columns not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 2,586: | Line 2,586: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to set X for | | The handle of the window to set X for | ||
|- | |- | ||
− | ! | + | ! X |
| The new X value to set | | The new X value to set | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, X is based on character columns not screen pixels | + | | For Text Console functions, X is based on character columns not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 2,607: | Line 2,607: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get Y for | | The handle of the window to get Y for | ||
|- | |- | ||
− | ! | + | ! Return |
| The Y value for the window | | The Y value for the window | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, Y is based on character rows not screen pixels | + | | For Text Console functions, Y is based on character rows not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 2,625: | Line 2,625: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to set Y for | | The handle of the window to set Y for | ||
|- | |- | ||
− | ! | + | ! Y |
| The new Y value to set | | The new Y value to set | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, Y is based on character rows not screen pixels | + | | For Text Console functions, Y is based on character rows not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 2,646: | Line 2,646: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get X and Y for | | The handle of the window to get X and Y for | ||
|- | |- | ||
− | ! | + | ! X |
| The returned X value | | The returned X value | ||
|- | |- | ||
− | ! | + | ! Y |
| The returned Y value | | The returned Y value | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, X and Y are based on character rows and columns not screen pixels | + | | For Text Console functions, X and Y are based on character rows and columns not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 2,670: | Line 2,670: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to set X and Y for | | The handle of the window to set X and Y for | ||
|- | |- | ||
− | ! | + | ! X |
| The new X value | | The new X value | ||
|- | |- | ||
− | ! | + | ! Y |
| The new Y value | | The new Y value | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, X and Y are based on character rows and columns not screen pixels | + | | For Text Console functions, X and Y are based on character rows and columns not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 2,694: | Line 2,694: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get the point for | | The handle of the window to get the point for | ||
|- | |- | ||
− | ! | + | ! Return |
| The current point of the window | | The current point of the window | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, Point is based on character rows and columns not screen pixels | + | | For Text Console functions, Point is based on character rows and columns not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 2,712: | Line 2,712: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to set the point for | | The handle of the window to set the point for | ||
|- | |- | ||
− | ! | + | ! Point |
| The new point to set for the window | | The new point to set for the window | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, Point is based on character rows and columns not screen pixels | + | | For Text Console functions, Point is based on character rows and columns not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 2,733: | Line 2,733: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get columns for | | The handle of the window to get columns for | ||
|- | |- | ||
− | ! | + | ! Return |
| The columns value for the current window viewport | | The columns value for the current window viewport | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, Columns is based on character columns not screen pixels | + | | For Text Console functions, Columns is based on character columns not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 2,751: | Line 2,751: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get rows for | | The handle of the window to get rows for | ||
|- | |- | ||
− | ! | + | ! Return |
| The rows value for the current window viewport | | The rows value for the current window viewport | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, Rows is based on character rows not screen pixels | + | | For Text Console functions, Rows is based on character rows not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 2,769: | Line 2,769: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get the width for | | The handle of the window to get the width for | ||
|- | |- | ||
− | ! | + | ! Return |
| The absolute width of the window | | The absolute width of the window | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, Width is based on character columns not screen pixels | + | | For Text Console functions, Width is based on character columns not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 2,787: | Line 2,787: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get the height for | | The handle of the window to get the height for | ||
|- | |- | ||
− | ! | + | ! Return |
| The absolute height of the window | | The absolute height of the window | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, Height is based on character rows not screen pixels | + | | For Text Console functions, Height is based on character rows not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 2,805: | Line 2,805: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get the format for | | The handle of the window to get the format for | ||
|- | |- | ||
− | ! | + | ! Return |
| The color format of the window (eg COLOR_FORMAT_ARGB32) | | The color format of the window (eg COLOR_FORMAT_ARGB32) | ||
|- | |- | ||
Line 2,820: | Line 2,820: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get the foreground color for | | The handle of the window to get the foreground color for | ||
|- | |- | ||
− | ! | + | ! Return |
| The foreground color of the window (eg COLOR_WHITE) | | The foreground color of the window (eg COLOR_WHITE) | ||
|- | |- | ||
Line 2,835: | Line 2,835: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to set the foreground color for | | The handle of the window to set the foreground color for | ||
|- | |- | ||
− | ! | + | ! Color |
| The foreground color to set (eg COLOR_WHITE) | | The foreground color to set (eg COLOR_WHITE) | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 2,853: | Line 2,853: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get the background color for | | The handle of the window to get the background color for | ||
|- | |- | ||
− | ! | + | ! Return |
| The background color of the window (eg COLOR_BLACK) | | The background color of the window (eg COLOR_BLACK) | ||
|- | |- | ||
Line 2,868: | Line 2,868: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to set the background color for | | The handle of the window to set the background color for | ||
|- | |- | ||
− | ! | + | ! Color |
| The background color to set (eg COLOR_BLACK) | | The background color to set (eg COLOR_BLACK) | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 2,886: | Line 2,886: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get the default font for | | The handle of the window to get the default font for | ||
|- | |- | ||
− | ! | + | ! Return |
| The font handle of the default font or INVALID_HANDLE_VALUE on error | | The font handle of the default font or INVALID_HANDLE_VALUE on error | ||
|- | |- | ||
Line 2,901: | Line 2,901: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to set the default font for | | The handle of the window to set the default font for | ||
|- | |- | ||
− | ! | + | ! Font |
| The font handle of the default font to set | | The font handle of the default font to set | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console windows, setting the font also clears the window | + | | For Text Console windows, setting the font also clears the window. |
|- | |- | ||
|} | |} | ||
Line 2,922: | Line 2,922: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get cursor X and Y for | | The handle of the window to get cursor X and Y for | ||
|- | |- | ||
− | ! | + | ! X |
| The returned cursor X value | | The returned cursor X value | ||
|- | |- | ||
− | ! | + | ! Y |
| The returned cursor Y value | | The returned cursor Y value | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, cursor X and Y are based on character rows and columns not screen pixels | + | | For Text Console functions, cursor X and Y are based on character rows and columns not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 2,946: | Line 2,946: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to set cursor X and Y for | | The handle of the window to set cursor X and Y for | ||
|- | |- | ||
− | ! | + | ! X |
| The new cursor X value | | The new cursor X value | ||
|- | |- | ||
− | ! | + | ! Y |
| The new cursor Y value | | The new cursor Y value | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, cursor X and Y are based on character rows and columns not screen pixels | + | | For Text Console functions, cursor X and Y are based on character rows and columns not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 2,970: | Line 2,970: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get the mode for | | The handle of the window to get the mode for | ||
|- | |- | ||
− | ! | + | ! Return |
| The current cursor mode (eg CURSOR_MODE_INSERT) | | The current cursor mode (eg CURSOR_MODE_INSERT) | ||
|- | |- | ||
Line 2,985: | Line 2,985: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to set the mode for | | The handle of the window to set the mode for | ||
|- | |- | ||
− | ! | + | ! CursorMode |
| The cursor mode to set (eg CURSOR_MODE_INSERT) | | The cursor mode to set (eg CURSOR_MODE_INSERT) | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 3,003: | Line 3,003: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get blink state for | | The handle of the window to get blink state for | ||
|- | |- | ||
− | ! | + | ! Return |
− | | True if blink is enabled, False if not or on error | + | | True if blink is enabled, False if not or on error. |
|- | |- | ||
|} | |} | ||
Line 3,018: | Line 3,018: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to set the blink state for | | The handle of the window to set the blink state for | ||
|- | |- | ||
− | ! | + | ! CursorBlink |
− | | True to enable blink, False to disable | + | | True to enable blink, False to disable. |
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 3,036: | Line 3,036: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get the state for | | The handle of the window to get the state for | ||
|- | |- | ||
− | ! | + | ! Return |
| The current cursor state (eg CURSOR_STATE_ON) | | The current cursor state (eg CURSOR_STATE_ON) | ||
|- | |- | ||
Line 3,051: | Line 3,051: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to set the state for | | The handle of the window to set the state for | ||
|- | |- | ||
− | ! | + | ! CursorState |
| The cursor state to set (eg CURSOR_STATE_ON) | | The cursor state to set (eg CURSOR_STATE_ON) | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 3,069: | Line 3,069: | ||
{| class="wikitable" style="font-size: 14px; background: white;"* | {| class="wikitable" style="font-size: 14px; background: white;"* | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get the shape for | | The handle of the window to get the shape for | ||
|- | |- | ||
− | ! | + | ! Return |
| The current cursor shape (eg CURSOR_SHAPE_LINE) | | The current cursor shape (eg CURSOR_SHAPE_LINE) | ||
|- | |- | ||
Line 3,084: | Line 3,084: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to set the shape for | | The handle of the window to set the shape for | ||
|- | |- | ||
− | ! | + | ! CursorShape |
| The cursor shape to set (eg CURSOR_SHAPE_LINE) | | The cursor shape to set (eg CURSOR_SHAPE_LINE) | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 3,102: | Line 3,102: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to enable the cursor for | | The handle of the window to enable the cursor for | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 3,117: | Line 3,117: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to disable the cursor for | | The handle of the window to disable the cursor for | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 3,132: | Line 3,132: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to change the cursor for | | The handle of the window to change the cursor for | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 3,147: | Line 3,147: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to change the cursor for | | The handle of the window to change the cursor for | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 3,162: | Line 3,162: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to change the cursor for | | The handle of the window to change the cursor for | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 3,177: | Line 3,177: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to move the cursor for | | The handle of the window to move the cursor for | ||
|- | |- | ||
− | ! | + | ! X |
| The column to move the cursor to | | The column to move the cursor to | ||
|- | |- | ||
− | ! | + | ! Y |
| The row to move the cursor to | | The row to move the cursor to | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, X and Y are based on character rows and columns not screen pixels | + | | For Text Console functions, X and Y are based on character rows and columns not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 3,201: | Line 3,201: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to set the blink state for | | The handle of the window to set the blink state for | ||
|- | |- | ||
− | ! | + | ! Enabled |
| True if the cursor is blinking, False if not | | True if the cursor is blinking, False if not | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 3,219: | Line 3,219: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to add to | | The handle of the window to add to | ||
|- | |- | ||
− | ! | + | ! Value |
| The text to add to the command history | | The text to add to the command history | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| For Text Console functions, Window is based on screen character rows and columns not screen pixels | | For Text Console functions, Window is based on screen character rows and columns not screen pixels | ||
When the number of entries in the table reaches the maximum the first entry will be removed | When the number of entries in the table reaches the maximum the first entry will be removed | ||
Line 3,241: | Line 3,241: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to clear | | The handle of the window to clear | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 3,256: | Line 3,256: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get from | | The handle of the window to get from | ||
|- | |- | ||
− | ! | + | ! Return |
| The command history value or an empty string on failure | | The command history value or an empty string on failure | ||
|- | |- | ||
Line 3,271: | Line 3,271: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get from | | The handle of the window to get from | ||
|- | |- | ||
− | ! | + | ! Return |
| The command history value or an empty string on failure | | The command history value or an empty string on failure | ||
|- | |- | ||
Line 3,286: | Line 3,286: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get from | | The handle of the window to get from | ||
|- | |- | ||
− | ! | + | ! Return |
| The command history value or an empty string on failure | | The command history value or an empty string on failure | ||
|- | |- | ||
Line 3,301: | Line 3,301: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get from | | The handle of the window to get from | ||
|- | |- | ||
− | ! | + | ! Return |
| The command history value or an empty string on failure | | The command history value or an empty string on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| If there is no current history value the last value is returned | | If there is no current history value the last value is returned | ||
|- | |- | ||
Line 3,319: | Line 3,319: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to get from | | The handle of the window to get from | ||
|- | |- | ||
− | ! | + | ! Return |
| The command history value or an empty string on failure | | The command history value or an empty string on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| If there is no current history value the last value is returned | | If there is no current history value the last value is returned | ||
|- | |- | ||
Line 3,337: | Line 3,337: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to scroll | | The handle of the window to scroll | ||
|- | |- | ||
− | ! | + | ! Row |
− | | The starting row (Y) for the scroll up, all rows from top plus Lines down to Row will be scrolled up | + | | The starting row (Y) for the scroll up, all rows from top plus Lines down to Row will be scrolled up. |
|- | |- | ||
− | ! | + | ! Lines |
− | | The number of character lines to scroll up, Lines number of rows at the top will be discarded | + | | The number of character lines to scroll up, Lines number of rows at the top will be discarded. |
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| Row is the starting row (Y) for the scroll up, all rows from top plus Lines down to Row will be scrolled up. Lines is the number of character lines to scroll up, Lines number of rows at the top will be discarded. The starting Row will be blanked with the background color. | | Row is the starting row (Y) for the scroll up, all rows from top plus Lines down to Row will be scrolled up. Lines is the number of character lines to scroll up, Lines number of rows at the top will be discarded. The starting Row will be blanked with the background color. | ||
|- | |- | ||
Line 3,361: | Line 3,361: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to scroll | | The handle of the window to scroll | ||
|- | |- | ||
− | ! | + | ! Row |
− | | The starting row (Y) for the scroll down, all rows from bottom minus Lines up to Row will be scrolled down | + | | The starting row (Y) for the scroll down, all rows from bottom minus Lines up to Row will be scrolled down. |
|- | |- | ||
− | ! | + | ! Lines |
− | | The number of character lines to scroll down, Lines number of rows at the bottom will be discarded | + | | The number of character lines to scroll down, Lines number of rows at the bottom will be discarded. |
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| Row is the starting row (Y) for the scroll down, all rows from bottom minus Lines up to Row will be scrolled down. Lines is the number of character lines to scroll down, Lines number of rows at the bottom will be discarded. The starting Row will be blanked with the background color. | | Row is the starting row (Y) for the scroll down, all rows from bottom minus Lines up to Row will be scrolled down. Lines is the number of character lines to scroll down, Lines number of rows at the bottom will be discarded. The starting Row will be blanked with the background color. | ||
|- | |- | ||
Line 3,385: | Line 3,385: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to scroll | | The handle of the window to scroll | ||
|- | |- | ||
− | ! | + | ! Row |
− | | The starting row (Y) for the scroll left, all rows from Row down to Row + Lines will be scrolled left | + | | The starting row (Y) for the scroll left, all rows from Row down to Row + Lines will be scrolled left. |
|- | |- | ||
− | ! | + | ! Lines |
− | | The number of rows to scroll left, all rows from Row down to Row + Lines will be scrolled left | + | | The number of rows to scroll left, all rows from Row down to Row + Lines will be scrolled left. |
|- | |- | ||
− | ! | + | ! Col |
− | | The starting column (X) for the scroll left, all cols from left plus Chars to Col with be scrolled left | + | | The starting column (X) for the scroll left, all cols from left plus Chars to Col with be scrolled left. |
|- | |- | ||
− | ! | + | ! Char |
− | | The number of characters to scroll left, Chars number of columns at the left will be discarded | + | | The number of characters to scroll left, Chars number of columns at the left will be discarded. |
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| The starting Col will be blanked with the background color | | The starting Col will be blanked with the background color | ||
|- | |- | ||
Line 3,415: | Line 3,415: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to scroll | | The handle of the window to scroll | ||
|- | |- | ||
− | ! | + | ! Row |
− | | The starting row (Y) for the scroll right, all rows from Row down to Row + Lines will be scrolled right | + | | The starting row (Y) for the scroll right, all rows from Row down to Row + Lines will be scrolled right. |
|- | |- | ||
− | ! | + | ! Lines |
− | | The number of rows to scroll right, all rows from Row down to Row + Lines will be scrolled right | + | | The number of rows to scroll right, all rows from Row down to Row + Lines will be scrolled right. |
|- | |- | ||
− | ! | + | ! Col |
− | | The starting column (X) for the scroll right, all rows from right minus Chars to Col will be scrolled right | + | | The starting column (X) for the scroll right, all rows from right minus Chars to Col will be scrolled right. |
|- | |- | ||
− | ! | + | ! Char |
− | | The number of characters to scroll right, Chars number of columns at the right will be discarded | + | | The number of characters to scroll right, Chars number of columns at the right will be discarded. |
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| The starting Col will be blanked with the background color | | The starting Col will be blanked with the background color | ||
|- | |- | ||
Line 3,445: | Line 3,445: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to clear | | The handle of the window to clear | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 3,460: | Line 3,460: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to clear | | The handle of the window to clear | ||
|- | |- | ||
− | ! | + | ! X1 |
| The left edge of the area to clear (relative to current viewport) | | The left edge of the area to clear (relative to current viewport) | ||
|- | |- | ||
− | ! | + | ! Y1 |
| The top edge of the area to clear (relative to current viewport) | | The top edge of the area to clear (relative to current viewport) | ||
|- | |- | ||
− | ! | + | ! X2 |
| The right edge of the area to clear (relative to current viewport) | | The right edge of the area to clear (relative to current viewport) | ||
|- | |- | ||
− | ! | + | ! Y2 |
| The bottom edge of the area to clear (relative to current viewport) | | The bottom edge of the area to clear (relative to current viewport) | ||
|- | |- | ||
− | ! | + | ! Cursor |
| If True update the cursor position after clearing | | If True update the cursor position after clearing | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, Window is based on screen character rows and columns not screen pixels | + | | For Text Console functions, Window is based on screen character rows and columns not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 3,493: | Line 3,493: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to write text on | | The handle of the window to write text on | ||
|- | |- | ||
− | ! | + | ! Text |
| The text to write | | The text to write | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| The window will not scroll up at the end of the line | | The window will not scroll up at the end of the line | ||
|- | |- | ||
Line 3,514: | Line 3,514: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to write text on | | The handle of the window to write text on | ||
|- | |- | ||
− | ! | + | ! Text |
| The text to write | | The text to write | ||
|- | |- | ||
− | ! | + | ! X |
| The column to start writing the text at | | The column to start writing the text at | ||
|- | |- | ||
− | ! | + | ! Y |
| The row to start writing the text at | | The row to start writing the text at | ||
|- | |- | ||
− | ! | + | ! Forecolor |
| The foreround color to use (eg COLOR_WHITE) | | The foreround color to use (eg COLOR_WHITE) | ||
|- | |- | ||
− | ! | + | ! Backcolor |
| The foreround color to use (eg COLOR_BLACK) | | The foreround color to use (eg COLOR_BLACK) | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, X and Y are based on screen character rows and columns not screen pixels | + | | For Text Console functions, X and Y are based on screen character rows and columns not screen pixels. |
The window will not scroll up at the end of the line | The window will not scroll up at the end of the line | ||
|- | |- | ||
Line 3,548: | Line 3,548: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to write text on | | The handle of the window to write text on | ||
|- | |- | ||
− | ! | + | ! Text |
| The text to write | | The text to write | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| The window will scroll up at the end of the line | | The window will scroll up at the end of the line | ||
|- | |- | ||
Line 3,569: | Line 3,569: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to write text on | | The handle of the window to write text on | ||
|- | |- | ||
− | ! | + | ! Text |
| The text to write | | The text to write | ||
|- | |- | ||
− | ! | + | ! X |
| The column to start writing the text at | | The column to start writing the text at | ||
|- | |- | ||
− | ! | + | ! Y |
| The row to start writing the text at | | The row to start writing the text at | ||
|- | |- | ||
− | ! | + | ! Forecolor |
| The foreround color to use (eg COLOR_WHITE) | | The foreround color to use (eg COLOR_WHITE) | ||
|- | |- | ||
− | ! | + | ! Backcolor |
| The foreround color to use (eg COLOR_BLACK) | | The foreround color to use (eg COLOR_BLACK) | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, X and Y are based on character rows and columns not screen pixels | + | | For Text Console functions, X and Y are based on character rows and columns not screen pixels. |
The window will scroll up at the end of the line | The window will scroll up at the end of the line | ||
|- | |- | ||
Line 3,603: | Line 3,603: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to write the character on | | The handle of the window to write the character on | ||
|- | |- | ||
− | ! | + | ! Chr |
| The character to write | | The character to write | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 3,621: | Line 3,621: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to write the character on | | The handle of the window to write the character on | ||
|- | |- | ||
− | ! | + | ! Chr |
| The character to write | | The character to write | ||
|- | |- | ||
− | ! | + | ! X |
| The column to start writing the character at | | The column to start writing the character at | ||
|- | |- | ||
− | ! | + | ! Y |
| The row to start writing the character at | | The row to start writing the character at | ||
|- | |- | ||
− | ! | + | ! Forecolor |
| The foreround color to use (eg COLOR_WHITE) | | The foreround color to use (eg COLOR_WHITE) | ||
|- | |- | ||
− | ! | + | ! Backcolor |
| The foreround color to use (eg COLOR_BLACK) | | The foreround color to use (eg COLOR_BLACK) | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, X and Y are based on character rows and columns not screen pixels | + | | For Text Console functions, X and Y are based on character rows and columns not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 3,654: | Line 3,654: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The console window to output to | | The console window to output to | ||
|- | |- | ||
− | ! | + | ! Source |
| The X and Y point in the source buffer to copy text from (Characters) | | The X and Y point in the source buffer to copy text from (Characters) | ||
|- | |- | ||
− | ! | + | ! Dest |
| The X and Y point on the console window to copy text to (Characters) | | The X and Y point on the console window to copy text to (Characters) | ||
|- | |- | ||
− | ! | + | ! Buffer |
| A pointer to a buffer of TConsoleChar structures which represent rows of text | | A pointer to a buffer of TConsoleChar structures which represent rows of text | ||
|- | |- | ||
− | ! | + | ! Width |
| The width of the area to be output (Characters) | | The width of the area to be output (Characters) | ||
|- | |- | ||
− | ! | + | ! Height |
| The height of the area to be output (Characters) | | The height of the area to be output (Characters) | ||
|- | |- | ||
− | ! | + | ! Skip |
| The number of characters to skip in the buffer after each row (Optional) | | The number of characters to skip in the buffer after each row (Optional) | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For Text Console functions, Source, Dest, Width, Height and Skip are based on character rows and columns not screen pixels | + | | For Text Console functions, Source, Dest, Width, Height and Skip are based on character rows and columns not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 3,690: | Line 3,690: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to echo input to | | The handle of the window to echo input to | ||
|- | |- | ||
− | ! | + | ! Text |
| The text read from the console on return | | The text read from the console on return | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| The console window will not scroll up on return | | The console window will not scroll up on return | ||
|- | |- | ||
Line 3,711: | Line 3,711: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to echo input to | | The handle of the window to echo input to | ||
|- | |- | ||
− | ! | + | ! Text |
| The text read from the console on return | | The text read from the console on return | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| The console window will scroll up one line on return | | The console window will scroll up one line on return | ||
|- | |- | ||
Line 3,732: | Line 3,732: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to echo input to | | The handle of the window to echo input to | ||
|- | |- | ||
− | ! | + | ! Text |
| The text read from the console on return | | The text read from the console on return | ||
|- | |- | ||
− | ! | + | ! Prompt |
| An optional text prompt to display at the start of the line | | An optional text prompt to display at the start of the line | ||
|- | |- | ||
− | ! | + | ! X |
| The starting X position for the output (0 for current position) | | The starting X position for the output (0 for current position) | ||
|- | |- | ||
− | ! | + | ! Y |
| The starting Y position for the output (0 for current position) | | The starting Y position for the output (0 for current position) | ||
|- | |- | ||
− | ! | + | ! Forecolor |
| The text forecolor for the output (COLOR_NONE for current color) | | The text forecolor for the output (COLOR_NONE for current color) | ||
|- | |- | ||
− | ! | + | ! Backcolor |
| The text backcolor for the output (COLOR_NONE for current color) | | The text backcolor for the output (COLOR_NONE for current color) | ||
|- | |- | ||
− | ! | + | ! Scroll |
| If true then scroll up one line on return | | If true then scroll up one line on return | ||
|- | |- | ||
− | ! | + | ! History |
| If true then support console history buffer using Up, Down and F3 keys | | If true then support console history buffer using Up, Down and F3 keys | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
− | | Supports common line editing behaviour including Home, End, Left, Right, Up, Down, Insert, Backspace and Delete | + | | Supports common line editing behaviour including Home, End, Left, Right, Up, Down, Insert, Backspace and Delete. |
|- | |- | ||
|} | |} | ||
Line 3,774: | Line 3,774: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to echo input to | | The handle of the window to echo input to | ||
|- | |- | ||
− | ! | + | ! Chr |
| The character read from the console on return | | The character read from the console on return | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| The console window will not scroll up on return | | The console window will not scroll up on return | ||
|- | |- | ||
Line 3,795: | Line 3,795: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The handle of the window to echo input to | | The handle of the window to echo input to | ||
|- | |- | ||
− | ! | + | ! Chr |
| The character read from the console on return | | The character read from the console on return | ||
|- | |- | ||
− | ! | + | ! Prompt |
| An optional text prompt to display at the start of the line | | An optional text prompt to display at the start of the line | ||
|- | |- | ||
− | ! | + | ! X |
| The starting X position for the output (0 for current position) | | The starting X position for the output (0 for current position) | ||
|- | |- | ||
− | ! | + | ! Y |
| The starting Y position for the output (0 for current position) | | The starting Y position for the output (0 for current position) | ||
|- | |- | ||
− | ! | + | ! Forecolor |
| The text forecolor for the output (COLOR_NONE for current color) | | The text forecolor for the output (COLOR_NONE for current color) | ||
|- | |- | ||
− | ! | + | ! Backcolor |
| The text backcolor for the output (COLOR_NONE for current color) | | The text backcolor for the output (COLOR_NONE for current color) | ||
|- | |- | ||
− | ! | + | ! Echo |
| If true then echo the character to the console window | | If true then echo the character to the console window | ||
|- | |- | ||
− | ! | + | ! Scroll |
| If true then scroll up one line on return | | If true then scroll up one line on return | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 3,837: | Line 3,837: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! See |
| http://www.freepascal.org/docs-html-3.0.0/rtl/crt/assigncrt.html | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/assigncrt.html | ||
|- | |- | ||
Line 3,849: | Line 3,849: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! See |
| http://www.freepascal.org/docs-html-3.0.0/rtl/crt/clreol.html | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/clreol.html | ||
|- | |- | ||
Line 3,861: | Line 3,861: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! See |
| http://www.freepascal.org/docs-html-3.0.0/rtl/crt/clrscr.html | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/clrscr.html | ||
|- | |- | ||
Line 3,873: | Line 3,873: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! See |
| http://www.freepascal.org/docs-html-3.0.0/rtl/crt/delay.html | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/delay.html | ||
|- | |- | ||
Line 3,885: | Line 3,885: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! See |
| http://www.freepascal.org/docs-html-3.0.0/rtl/crt/delline.html | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/delline.html | ||
|- | |- | ||
Line 3,897: | Line 3,897: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! See |
| http://www.freepascal.org/docs-html-3.0.0/rtl/crt/gotoxy.html | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/gotoxy.html | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For CRT Console functions, X and Y are based on character rows and columns not screen pixels | + | | For CRT Console functions, X and Y are based on character rows and columns not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 3,912: | Line 3,912: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! See |
| http://www.freepascal.org/docs-html-3.0.0/rtl/crt/highvideo.html | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/highvideo.html | ||
|- | |- | ||
Line 3,924: | Line 3,924: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! See |
| See: http://www.freepascal.org/docs-html-3.0.0/rtl/crt/insline.html | | See: http://www.freepascal.org/docs-html-3.0.0/rtl/crt/insline.html | ||
|- | |- | ||
Line 3,936: | Line 3,936: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! See |
| http://www.freepascal.org/docs-html-3.0.0/rtl/crt/keypressed.html | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/keypressed.html | ||
|- | |- | ||
Line 3,948: | Line 3,948: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! See |
| http://www.freepascal.org/docs-html-3.0.0/rtl/crt/lowvideo.html | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/lowvideo.html | ||
|- | |- | ||
Line 3,960: | Line 3,960: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! See |
| http://www.freepascal.org/docs-html-3.0.0/rtl/crt/normvideo.html | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/normvideo.html | ||
|- | |- | ||
Line 3,972: | Line 3,972: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! See |
| http://www.freepascal.org/docs-html-3.0.0/rtl/crt/nosound.html | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/nosound.html | ||
|- | |- | ||
Line 3,984: | Line 3,984: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! See |
| http://www.freepascal.org/docs-html-3.0.0/rtl/crt/readkey.html | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/readkey.html | ||
− | + | For extended key scan codes see: http://www.freepascal.org/docs-html/rtl/keyboard/kbdscancode.html | |
− | + | ||
− | + | ||
|- | |- | ||
|} | |} | ||
Line 3,999: | Line 3,997: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! See |
| http://www.freepascal.org/docs-html-3.0.0/rtl/crt/sound.html | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/sound.html | ||
|- | |- | ||
Line 4,011: | Line 4,009: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! See |
| http://www.freepascal.org/docs-html-3.0.0/rtl/crt/textbackground.html | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/textbackground.html | ||
|- | |- | ||
Line 4,023: | Line 4,021: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! See |
| http://www.freepascal.org/docs-html-3.0.0/rtl/crt/textcolor.html | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/textcolor.html | ||
|- | |- | ||
Line 4,035: | Line 4,033: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! See |
| http://www.freepascal.org/docs-html-3.0.0/rtl/crt/textmode.html | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/textmode.html | ||
|- | |- | ||
Line 4,047: | Line 4,045: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! See |
| http://www.freepascal.org/docs-html-3.0.0/rtl/crt/wherex.html | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/wherex.html | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For CRT Console functions, X is based on character columns not screen pixels | + | | For CRT Console functions, X is based on character columns not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 4,062: | Line 4,060: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! See |
| http://www.freepascal.org/docs-html-3.0.0/rtl/crt/wherey.html | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/wherey.html | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For CRT Console functions, Y is based on character row not screen pixel | + | | For CRT Console functions, Y is based on character row not screen pixel. |
|- | |- | ||
|} | |} | ||
Line 4,077: | Line 4,075: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! See |
| http://www.freepascal.org/docs-html-3.0.0/rtl/crt/window.html | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/window.html | ||
|- | |- | ||
− | ! | + | ! Note |
− | | For CRT Console functions, X1, Y1, X2 and Y2 are based on character rows and columns not screen pixels | + | | For CRT Console functions, X1, Y1, X2 and Y2 are based on character rows and columns not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 4,092: | Line 4,090: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Row |
− | | The starting row (Y) for the scroll up, all rows from top plus Lines down to Row will be scrolled up | + | | The starting row (Y) for the scroll up, all rows from top plus Lines down to Row will be scrolled up. |
|- | |- | ||
− | ! | + | ! Lines |
− | | The number of character lines to scroll up, Lines number of rows at the top will be discarded | + | | The number of character lines to scroll up, Lines number of rows at the top will be discarded. |
|- | |- | ||
− | ! | + | ! Note |
− | | For CRT Console functions, Row and Lines are based on character rows and columns not screen pixels | + | | For CRT Console functions, Row and Lines are based on character rows and columns not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 4,110: | Line 4,108: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Row |
− | | The starting row (Y) for the scroll down, all rows from bottom minus Lines up to Row will be scrolled down | + | | The starting row (Y) for the scroll down, all rows from bottom minus Lines up to Row will be scrolled down. |
|- | |- | ||
− | ! | + | ! Lines |
− | | The number of character lines to scroll down, Lines number of rows at the bottom will be discarded | + | | The number of character lines to scroll down, Lines number of rows at the bottom will be discarded. |
|- | |- | ||
− | ! | + | ! Note |
− | | For CRT Console functions, Row and Lines are based on character rows and columns not screen pixels | + | | For CRT Console functions, Row and Lines are based on character rows and columns not screen pixels. |
|- | |- | ||
|} | |} | ||
Line 4,128: | Line 4,126: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Text |
| The text to write | | The text to write | ||
|- | |- | ||
− | ! | + | ! Note |
| The window will not scroll up at the end of the line | | The window will not scroll up at the end of the line | ||
|- | |- | ||
Line 4,143: | Line 4,141: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Text |
| The text to write | | The text to write | ||
|- | |- | ||
− | ! | + | ! Note |
| The window will scroll up at the end of the line | | The window will scroll up at the end of the line | ||
|- | |- | ||
Line 4,158: | Line 4,156: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Chr |
| The character to write | | The character to write | ||
|- | |- | ||
Line 4,170: | Line 4,168: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Text |
| The text read from the console input | | The text read from the console input | ||
|- | |- | ||
Line 4,182: | Line 4,180: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Text |
| The text read from the console input | | The text read from the console input | ||
|- | |- | ||
Line 4,194: | Line 4,192: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Chr |
| The character read from the console input | | The character read from the console input | ||
|- | |- | ||
Line 4,209: | Line 4,207: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Not intended to be called directly by applications | | Not intended to be called directly by applications | ||
|- | |- | ||
Line 4,224: | Line 4,222: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Not intended to be called directly by applications | | Not intended to be called directly by applications | ||
|- | |- | ||
Line 4,239: | Line 4,237: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Not intended to be called directly by applications, use ConsoleDeviceOpen instead | | Not intended to be called directly by applications, use ConsoleDeviceOpen instead | ||
|- | |- | ||
Line 4,251: | Line 4,249: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Not intended to be called directly by applications, use ConsoleDeviceClose instead | | Not intended to be called directly by applications, use ConsoleDeviceClose instead | ||
|- | |- | ||
Line 4,263: | Line 4,261: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Not intended to be called directly by applications, use ConsoleDeviceClear instead | | Not intended to be called directly by applications, use ConsoleDeviceClear instead | ||
|- | |- | ||
Line 4,275: | Line 4,273: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Not intended to be called directly by applications, use ConsoleDeviceScroll instead | | Not intended to be called directly by applications, use ConsoleDeviceScroll instead | ||
|- | |- | ||
Line 4,287: | Line 4,285: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Not intended to be called directly by applications, use ConsoleDeviceDrawBox instead | | Not intended to be called directly by applications, use ConsoleDeviceDrawBox instead | ||
|- | |- | ||
Line 4,299: | Line 4,297: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Not intended to be called directly by applications, use ConsoleDeviceDrawLine instead | | Not intended to be called directly by applications, use ConsoleDeviceDrawLine instead | ||
|- | |- | ||
Line 4,311: | Line 4,309: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Not intended to be called directly by applications, use ConsoleDeviceDrawChar instead | | Not intended to be called directly by applications, use ConsoleDeviceDrawChar instead | ||
|- | |- | ||
Line 4,323: | Line 4,321: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Not intended to be called directly by applications, use ConsoleDeviceDrawText instead | | Not intended to be called directly by applications, use ConsoleDeviceDrawText instead | ||
|- | |- | ||
Line 4,335: | Line 4,333: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Not intended to be called directly by applications, use ConsoleDeviceDrawPixel instead | | Not intended to be called directly by applications, use ConsoleDeviceDrawPixel instead | ||
|- | |- | ||
Line 4,347: | Line 4,345: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Not intended to be called directly by applications, use ConsoleDeviceDrawBlock instead | | Not intended to be called directly by applications, use ConsoleDeviceDrawBlock instead | ||
|- | |- | ||
Line 4,359: | Line 4,357: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Not intended to be called directly by applications, use ConsoleDeviceDrawImage instead | | Not intended to be called directly by applications, use ConsoleDeviceDrawImage instead | ||
|- | |- | ||
Line 4,371: | Line 4,369: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Not intended to be called directly by applications, use ConsoleDeviceDrawWindow instead | | Not intended to be called directly by applications, use ConsoleDeviceDrawWindow instead | ||
Caller must hold the Window lock | Caller must hold the Window lock | ||
Line 4,384: | Line 4,382: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Not intended to be called directly by applications | | Not intended to be called directly by applications | ||
|- | |- | ||
Line 4,396: | Line 4,394: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Not intended to be called directly by applications, use ConsoleDeviceGetPixel instead | | Not intended to be called directly by applications, use ConsoleDeviceGetPixel instead | ||
|- | |- | ||
Line 4,408: | Line 4,406: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Not intended to be called directly by applications, use ConsoleDeviceGetImage instead | | Not intended to be called directly by applications, use ConsoleDeviceGetImage instead | ||
|- | |- | ||
Line 4,420: | Line 4,418: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Not intended to be called directly by applications, use ConsoleDevicePutText instead | | Not intended to be called directly by applications, use ConsoleDevicePutText instead | ||
|- | |- | ||
Line 4,432: | Line 4,430: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Not intended to be called directly by applications, use ConsoleDeviceCopyImage instead | | Not intended to be called directly by applications, use ConsoleDeviceCopyImage instead | ||
|- | |- | ||
Line 4,444: | Line 4,442: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Not intended to be called directly by applications | | Not intended to be called directly by applications | ||
|- | |- | ||
Line 4,456: | Line 4,454: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Not intended to be called directly by applications | | Not intended to be called directly by applications | ||
Caller must hold the console lock | Caller must hold the console lock | ||
Line 4,469: | Line 4,467: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Not intended to be called directly by applications | | Not intended to be called directly by applications | ||
Caller must hold the console lock | Caller must hold the console lock | ||
Line 4,482: | Line 4,480: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Not intended to be called directly by applications, use ConsoleDeviceAddCaret instead | | Not intended to be called directly by applications, use ConsoleDeviceAddCaret instead | ||
|- | |- | ||
Line 4,494: | Line 4,492: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Not intended to be called directly by applications, use ConsoleDeviceDeleteCaret instead | | Not intended to be called directly by applications, use ConsoleDeviceDeleteCaret instead | ||
|- | |- | ||
Line 4,506: | Line 4,504: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Not intended to be called directly by applications, use ConsoleDeviceUpdateCaret instead | | Not intended to be called directly by applications, use ConsoleDeviceUpdateCaret instead | ||
|- | |- | ||
Line 4,518: | Line 4,516: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Not intended to be called directly by applications, use ConsoleDeviceGetPosition instead | | Not intended to be called directly by applications, use ConsoleDeviceGetPosition instead | ||
|- | |- | ||
Line 4,533: | Line 4,531: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 4,545: | Line 4,543: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 4,557: | Line 4,555: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 4,569: | Line 4,567: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 4,581: | Line 4,579: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to search for the caret | | The console device to search for the caret | ||
|- | |- | ||
− | ! | + | ! Caret |
| The caret entry to check for validity | | The caret entry to check for validity | ||
|- | |- | ||
− | ! | + | ! Return |
| The supplied caret if successful or nil on failure | | The supplied caret if successful or nil on failure | ||
|- | |- | ||
Line 4,599: | Line 4,597: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 4,611: | Line 4,609: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 4,623: | Line 4,621: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 4,635: | Line 4,633: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 4,647: | Line 4,645: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 4,662: | Line 4,660: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to get the window count for | | The console device to get the window count for | ||
|- | |- | ||
− | ! | + | ! Return |
| The current number of console windows on the specified console device | | The current number of console windows on the specified console device | ||
|- | |- | ||
Line 4,677: | Line 4,675: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to get the active window for | | The console device to get the active window for | ||
|- | |- | ||
− | ! | + | ! Return |
| The window handle of the current active window or INVALID_HANDLE_VALUE on failure | | The window handle of the current active window or INVALID_HANDLE_VALUE on failure | ||
|- | |- | ||
Line 4,692: | Line 4,690: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to get the default window for | | The console device to get the default window for | ||
|- | |- | ||
− | ! | + | ! Return |
| The window handle of the current default window or INVALID_HANDLE_VALUE on failure | | The window handle of the current default window or INVALID_HANDLE_VALUE on failure | ||
|- | |- | ||
Line 4,707: | Line 4,705: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to set the default window for | | The console device to set the default window for | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 4,722: | Line 4,720: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Console |
| The console device to search for the window | | The console device to search for the window | ||
|- | |- | ||
− | ! | + | ! Window |
| The window entry to check for validity | | The window entry to check for validity | ||
|- | |- | ||
− | ! | + | ! Return |
| The supplied window if successful or nil on failure | | The supplied window if successful or nil on failure | ||
|- | |- | ||
Line 4,740: | Line 4,738: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 4,752: | Line 4,750: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Handle |
| The window handle to redirect output to (or INVALID_HANDLE_VALUE to stop redirection) | | The window handle to redirect output to (or INVALID_HANDLE_VALUE to stop redirection) | ||
|- | |- | ||
− | ! | + | ! Return |
| True if completed successfully or False if an error occurred | | True if completed successfully or False if an error occurred | ||
|- | |- | ||
− | ! | + | ! Note |
| Redirects the output of the text files Output, ErrOutput, StdOut and StdErr which also redirects the output of Write, WriteLn and the standard C library. | | Redirects the output of the text files Output, ErrOutput, StdOut and StdErr which also redirects the output of Write, WriteLn and the standard C library. | ||
|- | |- |
Revision as of 01:23, 20 April 2018
Return to Unit Reference
Contents
[hide]Description
Ultibo Console interface unit
Note:
Console coordinates X,Y are based on either pixels or characters depending on the console mode (Pixel or Character)
Console coordinates begin at 0,0 and extend to Width - 1, Height - 1
Console Window coordinates X,Y are always based on characters, beginning at 1,1 and extending to Cols,Rows
Constants
CONSOLE_*
CONSOLE_TYPE_*
CONSOLE_STATE_*
CONSOLE_FLAG_*
CONSOLE_MODE_*
CARET_SIGNATURE*
WINDOW_SIGNATURE_*
WINDOW_STATE_*
WINDOW_MODE_*
WINDOW_FLAG_*
WINDOW_DRAW_FLAG_*
WINDOW_HISTORY_*
FRAMEBUFFER_CONSOLE_*
Type definitions
Cursor state
TCursorState = (CURSORON,CURSOROFF);
|
Console char
Console point
TConsolePoint = record
Console rect
TConsoleRect = record
Console properties
Console enumeration callback
TConsoleEnumerate = function(Console:PConsoleDevice; Data:Pointer):LongWord;
|
Console notification callback
TConsoleNotification = function(Device:PDevice; Data:Pointer; Notification:LongWord):LongWord;
|
Console device open
TConsoleDeviceOpen = function(Console:PConsoleDevice):LongWord;
|
Console device close
TConsoleDeviceClose = function(Console:PConsoleDevice):LongWord;
|
Console device clear
TConsoleDeviceClear = function(Console:PConsoleDevice; Color:LongWord):LongWord;
|
Console device scroll
TConsoleDeviceScroll = function(Console:PConsoleDevice; X1,Y1,X2,Y2,Count,Direction:LongWord):LongWord;
|
Console device draw box
TConsoleDeviceDrawBox = function(Console:PConsoleDevice; X1,Y1,X2,Y2,Color,Width:LongWord):LongWord;
|
Console device draw line
TConsoleDeviceDrawLine = function(Console:PConsoleDevice; X1,Y1,X2,Y2,Color,Width:LongWord):LongWord;
|
Console device draw char
TConsoleDeviceDrawChar = function(Console:PConsoleDevice; Handle:TFontHandle; Ch:Char;X,Y,Forecolor,Backcolor:LongWord):LongWord;
|
Console device draw text
TConsoleDeviceDrawText = function(Console:PConsoleDevice; Handle:TFontHandle; const Text:String;X,Y,Forecolor,Backcolor,Len:LongWord):LongWord;
|
Console device draw pixel
TConsoleDeviceDrawPixel = function(Console:PConsoleDevice; X,Y,Color:LongWord):LongWord;
|
Console device draw block
TConsoleDeviceDrawBlock = function(Console:PConsoleDevice; X1,Y1,X2,Y2,Color:LongWord):LongWord;
|
Console device draw image
TConsoleDeviceDrawImage = function(Console:PConsoleDevice; X,Y:LongWord; Buffer:Pointer; Width,Height,Format,Skip:LongWord):LongWord;
|
Console device draw window
TConsoleDeviceDrawWindow = function(Console:PConsoleDevice; Handle:TWindowHandle):LongWord;
|
Console device get pixel
TConsoleDeviceGetPixel = function(Console:PConsoleDevice; X,Y:LongWord; var Color:LongWord):LongWord;
|
Console device get image
TConsoleDeviceGetImage = function(Console:PConsoleDevice; X,Y:LongWord; Buffer:Pointer; Width,Height,Format,Skip:LongWord):LongWord;
|
Console device put text
TConsoleDevicePutText = function(Console:PConsoleDevice; Handle:TFontHandle; const Source,Dest:TConsolePoint; Buffer:PConsoleChar; Width,Height,Skip:LongWord):LongWord;
|
Console device copy image
TConsoleDeviceCopyImage = function(Console:PConsoleDevice; const Source,Dest:TConsolePoint; Width,Height:LongWord):LongWord;
|
Console device get position
TConsoleDeviceGetPosition = function(Console:PConsoleDevice; Position:LongWord; var X1,Y1,X2,Y2:LongWord):LongWord;
|
Console device get properties
TConsoleDeviceGetProperties = function(Console:PConsoleDevice; Properties:PConsoleProperties):LongWord;
|
Console device
Window properties
Console window enumeration callback
TConsoleWindowEnumerate = function(Console:PConsoleDevice; Handle:TWindowHandle; Data:Pointer):LongWord;
|
Console window
Framebuffer console
Public variables
None defined
Function declarations
Initialization functions
Console functions
function ConsoleDeviceOpen(Console:PConsoleDevice):LongWord;
function ConsoleDeviceClose(Console:PConsoleDevice):LongWord;
function ConsoleDeviceClear(Console:PConsoleDevice; Color:LongWord):LongWord;
function ConsoleDeviceScroll(Console:PConsoleDevice; X1,Y1,X2,Y2,Count,Direction:LongWord):LongWord;
function ConsoleDeviceDrawBox(Console:PConsoleDevice; X1,Y1,X2,Y2,Color,Width:LongWord):LongWord;
function ConsoleDeviceDrawLine(Console:PConsoleDevice; X1,Y1,X2,Y2,Color,Width:LongWord):LongWord;
function ConsoleDevicePlotLine(Console:PConsoleDevice; X1,Y1,X2,Y2,Color,Width:LongWord):LongWord;
function ConsoleDeviceDrawChar(Console:PConsoleDevice; Handle:TFontHandle; Ch:Char; X,Y,Forecolor,Backcolor:LongWord):LongWord;
function ConsoleDeviceDrawText(Console:PConsoleDevice; Handle:TFontHandle; const Text:String; X,Y,Forecolor,Backcolor,Len:LongWord):LongWord;
function ConsoleDeviceDrawPixel(Console:PConsoleDevice; X,Y,Color:LongWord):LongWord;
function ConsoleDeviceDrawBlock(Console:PConsoleDevice; X1,Y1,X2,Y2,Color:LongWord):LongWord;
function ConsoleDeviceDrawCircle(Console:PConsoleDevice; X,Y,Color,Width,Radius:LongWord):LongWord;
function ConsoleDeviceDrawImage(Console:PConsoleDevice; X,Y:LongWord; Buffer:Pointer; Width,Height,Format,Skip:LongWord):LongWord;
function ConsoleDeviceDrawWindow(Console:PConsoleDevice; Handle:TWindowHandle; Flags:LongWord):LongWord;
function ConsoleDeviceGetPixel(Console:PConsoleDevice; X,Y:LongWord; var Color:LongWord):LongWord;
function ConsoleDeviceGetImage(Console:PConsoleDevice; X,Y:LongWord; Buffer:Pointer; Width,Height,Format,Skip:LongWord):LongWord;
function ConsoleDevicePutText(Console:PConsoleDevice; Handle:TFontHandle; const Source,Dest:TConsolePoint; Buffer:PConsoleChar; Width,Height,Skip:LongWord):LongWord;
function ConsoleDeviceCopyImage(Console:PConsoleDevice; const Source,Dest:TConsolePoint; Width,Height:LongWord):LongWord;
function ConsoleDeviceAddCaret(Console:PConsoleDevice; Width,Height,OffsetX,OffsetY:LongWord):THandle;
function ConsoleDeviceDeleteCaret(Console:PConsoleDevice; Handle:THandle):LongWord;
function ConsoleDeviceUpdateCaret(Console:PConsoleDevice; Handle:THandle; X,Y:LongWord; Visible,Blink:Boolean):LongWord;
function ConsoleDeviceSetCursor(Console:PConsoleDevice; Width,Height:LongWord; Chars:PChar):LongWord;
function ConsoleDeviceUpdateCursor(Console:PConsoleDevice; Enabled:Boolean; X,Y:LongInt; Relative:Boolean):LongWord;
function ConsoleDeviceGetPosition(Console:PConsoleDevice; Position:LongWord; var X1,Y1,X2,Y2:LongWord):LongWord;
function ConsoleDeviceGetProperties(Console:PConsoleDevice; Properties:PConsoleProperties):LongWord;
function ConsoleDeviceCheckFlag(Console:PConsoleDevice; Flag:LongWord):Boolean;
function ConsoleDeviceUpdateFlag(Console:PConsoleDevice; Flag:LongWord; Clear:Boolean):LongWord;
function ConsoleDeviceGetMode(Console:PConsoleDevice):LongWord;
function ConsoleDeviceGetState(Console:PConsoleDevice):LongWord;
function ConsoleDeviceCreateEx(Size:LongWord):PConsoleDevice;
function ConsoleDeviceDestroy(Console:PConsoleDevice):LongWord;
function ConsoleDeviceRegister(Console:PConsoleDevice):LongWord;
function ConsoleDeviceDeregister(Console:PConsoleDevice):LongWord;
function ConsoleDeviceFind(ConsoleId:LongWord):PConsoleDevice;
function ConsoleDeviceFindByDevice(Device:PDevice):PConsoleDevice;
function ConsoleDeviceFindByName(const Name:String):PConsoleDevice; inline;
function ConsoleDeviceFindByDescription(const Description:String):PConsoleDevice; inline;
function ConsoleDeviceEnumerate(Callback:TConsoleEnumerate; Data:Pointer):LongWord;
function ConsoleDeviceNotification(Console:PConsoleDevice; Callback:TConsoleNotification; Data:Pointer; Notification,Flags:LongWord):LongWord;
Text console functions
function ConsoleWindowCreate(Console:PConsoleDevice; Position:LongWord; Default:Boolean):TWindowHandle;
function ConsoleWindowCreateEx(Console:PConsoleDevice; Font:TFontHandle; Size,State,Mode,Position:LongWord; Default:Boolean):TWindowHandle;
function ConsoleWindowDestroy(Handle:TWindowHandle):LongWord;
function ConsoleWindowShow(Handle:TWindowHandle):LongWord;
function ConsoleWindowHide(Handle:TWindowHandle):LongWord;
function ConsoleWindowActivate(Handle:TWindowHandle):LongWord;
function ConsoleWindowDeactivate(Handle:TWindowHandle):LongWord;
function ConsoleWindowNext(Console:PConsoleDevice; Visible:Boolean):TWindowHandle;
function ConsoleWindowPrevious(Console:PConsoleDevice; Visible:Boolean):TWindowHandle;
function ConsoleWindowAt(Console:PConsoleDevice; X,Y:LongWord; Visible:Boolean):TWindowHandle;
function ConsoleWindowFind(Console:PConsoleDevice; Position:LongWord):TWindowHandle;
function ConsoleWindowEnumerate(Console:PConsoleDevice; Callback:TConsoleWindowEnumerate; Data:Pointer):LongWord;
function ConsoleWindowCheckFlag(Handle:TWindowHandle; Flag:LongWord):Boolean;
function ConsoleWindowUpdateFlag(Handle:TWindowHandle; Flag:LongWord; Clear:Boolean):LongWord;
function ConsoleWindowGetMode(Handle:TWindowHandle):LongWord;
function ConsoleWindowGetState(Handle:TWindowHandle):LongWord;
function ConsoleWindowGetPosition(Handle:TWindowHandle):LongWord;
function ConsoleWindowSetPosition(Handle:TWindowHandle; Position:LongWord):LongWord;
function ConsoleWindowGetProperties(Handle:TWindowHandle; Properties:PWindowProperties):LongWord;
function ConsoleWindowGetMinX(Handle:TWindowHandle):LongWord;
function ConsoleWindowGetMinY(Handle:TWindowHandle):LongWord;
function ConsoleWindowGetMaxX(Handle:TWindowHandle):LongWord;
function ConsoleWindowGetMaxY(Handle:TWindowHandle):LongWord;
function ConsoleWindowGetRect(Handle:TWindowHandle):TConsoleRect; inline;
function ConsoleWindowSetRect(Handle:TWindowHandle; const ARect:TConsoleRect):LongWord; inline;
function ConsoleWindowResetRect(Handle:TWindowHandle):LongWord; inline;
function ConsoleWindowGetViewport(Handle:TWindowHandle; var X1,Y1,X2,Y2:LongWord):LongWord;
function ConsoleWindowSetViewport(Handle:TWindowHandle; X1,Y1,X2,Y2:LongWord):LongWord;
function ConsoleWindowResetViewport(Handle:TWindowHandle):LongWord;
function ConsoleWindowGetX(Handle:TWindowHandle):LongWord;
function ConsoleWindowSetX(Handle:TWindowHandle; X:LongWord):LongWord;
function ConsoleWindowGetY(Handle:TWindowHandle):LongWord;
function ConsoleWindowSetY(Handle:TWindowHandle; Y:LongWord):LongWord;
function ConsoleWindowGetXY(Handle:TWindowHandle; var X,Y:LongWord):LongWord;
function ConsoleWindowSetXY(Handle:TWindowHandle; X,Y:LongWord):LongWord;
function ConsoleWindowGetPoint(Handle:TWindowHandle):TConsolePoint;
function ConsoleWindowSetPoint(Handle:TWindowHandle; const APoint:TConsolePoint):LongWord;
function ConsoleWindowGetCols(Handle:TWindowHandle):LongWord;
function ConsoleWindowGetRows(Handle:TWindowHandle):LongWord;
function ConsoleWindowGetWidth(Handle:TWindowHandle):LongWord;
function ConsoleWindowGetHeight(Handle:TWindowHandle):LongWord;
function ConsoleWindowGetFormat(Handle:TWindowHandle):LongWord;
function ConsoleWindowGetForecolor(Handle:TWindowHandle):LongWord;
function ConsoleWindowSetForecolor(Handle:TWindowHandle; Color:LongWord):LongWord;
function ConsoleWindowGetBackcolor(Handle:TWindowHandle):LongWord;
function ConsoleWindowSetBackcolor(Handle:TWindowHandle; Color:LongWord):LongWord;
function ConsoleWindowGetFont(Handle:TWindowHandle):TFontHandle;
function ConsoleWindowSetFont(Handle:TWindowHandle; Font:TFontHandle):LongWord;
function ConsoleWindowGetCursorXY(Handle:TWindowHandle; var X,Y:LongWord):LongWord;
function ConsoleWindowSetCursorXY(Handle:TWindowHandle; X,Y:LongWord):LongWord;
function ConsoleWindowGetCursorMode(Handle:TWindowHandle):TCursorMode;
function ConsoleWindowSetCursorMode(Handle:TWindowHandle;CursorMode:TCursorMode):LongWord;
function ConsoleWindowGetCursorBlink(Handle:TWindowHandle):Boolean;
function ConsoleWindowSetCursorBlink(Handle:TWindowHandle; CursorBlink:Boolean):LongWord;
function ConsoleWindowGetCursorState(Handle:TWindowHandle):TCursorState;
function ConsoleWindowSetCursorState(Handle:TWindowHandle; CursorState:TCursorState):LongWord;
function ConsoleWindowGetCursorShape(Handle:TWindowHandle):TCursorShape;
function ConsoleWindowSetCursorShape(Handle:TWindowHandle; CursorShape:TCursorShape):LongWord;
function ConsoleWindowCursorOn(Handle:TWindowHandle):LongWord;
function ConsoleWindowCursorOff(Handle:TWindowHandle):LongWord;
function ConsoleWindowCursorLine(Handle:TWindowHandle):LongWord;
function ConsoleWindowCursorBar(Handle:TWindowHandle):LongWord;
function ConsoleWindowCursorBlock(Handle:TWindowHandle):LongWord;
function ConsoleWindowCursorMove(Handle:TWindowHandle; X,Y:LongWord):LongWord;
function ConsoleWindowCursorBlink(Handle:TWindowHandle; Enabled:Boolean):LongWord;
function ConsoleWindowAddHistory(Handle:TWindowHandle; const Value:String):LongWord;
function ConsoleWindowClearHistory(Handle:TWindowHandle):LongWord;
function ConsoleWindowFirstHistory(Handle:TWindowHandle):String;
function ConsoleWindowLastHistory(Handle:TWindowHandle):String;
function ConsoleWindowNextHistory(Handle:TWindowHandle):String;
function ConsoleWindowPreviousHistory(Handle:TWindowHandle):String;
function ConsoleWindowCurrentHistory(Handle:TWindowHandle):String;
function ConsoleWindowScrollUp(Handle:TWindowHandle; Row,Lines:LongWord):LongWord;
function ConsoleWindowScrollDown(Handle:TWindowHandle; Row,Lines:LongWord):LongWord;
function ConsoleWindowScrollLeft(Handle:TWindowHandle; Row,Col,Lines,Chars:LongWord):LongWord;
function ConsoleWindowScrollRight(Handle:TWindowHandle; Row,Col,Lines,Chars:LongWord):LongWord;
function ConsoleWindowClear(Handle:TWindowHandle):LongWord;
function ConsoleWindowClearEx(Handle:TWindowHandle; X1,Y1,X2,Y2:LongWord; Cursor:Boolean):LongWord;
function ConsoleWindowWrite(Handle:TWindowHandle; const AText:String):LongWord;
function ConsoleWindowWriteEx(Handle:TWindowHandle; const AText:String; X,Y,Forecolor,Backcolor:LongWord):LongWord;
function ConsoleWindowWriteLn(Handle:TWindowHandle; const AText:String):LongWord;
function ConsoleWindowWriteLnEx(Handle:TWindowHandle; const AText:String; X,Y,Forecolor,Backcolor:LongWord):LongWord;
function ConsoleWindowWriteChr(Handle:TWindowHandle; AChr:Char):LongWord;
function ConsoleWindowWriteChrEx(Handle:TWindowHandle; AChr:Char; X,Y,Forecolor,Backcolor:LongWord):LongWord;
function ConsoleWindowOutput(Handle:TWindowHandle; const Source,Dest:TConsolePoint; Buffer:PConsoleChar; Width,Height,Skip:LongWord):LongWord;
function ConsoleWindowRead(Handle:TWindowHandle; var AText:String):LongWord;
function ConsoleWindowReadLn(Handle:TWindowHandle; var AText:String):LongWord;
function ConsoleWindowReadLnEx(Handle:TWindowHandle; var AText:String; const Prompt:String; X,Y,Forecolor,Backcolor:LongWord; Scroll,History:Boolean; Completion:TConsoleWindowCompletion; Data:Pointer):LongWord;
function ConsoleWindowReadChr(Handle:TWindowHandle; var AChr:Char):LongWord;
function ConsoleWindowReadChrEx(Handle:TWindowHandle; var AChr:Char; const Prompt:String; X,Y,Forecolor,Backcolor:LongWord; Echo,Scroll:Boolean):LongWord;
CRT console functions
procedure ConsoleAssignCrt(var F:Text);
procedure ConsoleGotoXY(X,Y:Integer);
function ConsoleKeypressed:Boolean;
procedure ConsoleTextBackground(Color:LongWord);
procedure ConsoleTextColor(Color:LongWord);
procedure ConsoleTextMode(Mode:Integer);
procedure ConsoleWindow(X1,Y1,X2,Y2:Integer);
procedure ConsoleScrollUp(Row,Lines:Integer);
procedure ConsoleScrollDown(Row,Lines:Integer);
procedure ConsoleWrite(const AText:String);
procedure ConsoleWriteLn(const AText:String);
procedure ConsoleWriteChr(AChr:Char);
procedure ConsoleRead(var AText:String);
procedure ConsoleReadLn(var AText:String);
procedure ConsoleReadChr(var AChr:Char);
RTL text IO functions
function SysTextIOWriteChar(ACh:Char; AUserData:Pointer):Boolean;
RTL console functions
function SysConsoleWriteChar(ACh:Char; AUserData:Pointer):Boolean;
Framebuffer console functions
function FramebufferConsoleOpen(Console:PConsoleDevice):LongWord;
function FramebufferConsoleClose(Console:PConsoleDevice):LongWord;
function FramebufferConsoleClear(Console:PConsoleDevice; Color:LongWord):LongWord;
function FramebufferConsoleScroll(Console:PConsoleDevice; X1,Y1,X2,Y2,Count,Direction:LongWord):LongWord;
function FramebufferConsoleDrawBox(Console:PConsoleDevice; X1,Y1,X2,Y2,Color,Width:LongWord):LongWord;
function FramebufferConsoleDrawLine(Console:PConsoleDevice; X1,Y1,X2,Y2,Color,Width:LongWord):LongWord;
function FramebufferConsoleDrawChar(Console:PConsoleDevice; Handle:TFontHandle;Ch:Char; X,Y,Forecolor,Backcolor:LongWord):LongWord;
function FramebufferConsoleDrawText(Console:PConsoleDevice; Handle:TFontHandle; const Text:String; X,Y,Forecolor,Backcolor,Len:LongWord):LongWord;
function FramebufferConsoleDrawPixel(Console:PConsoleDevice; X,Y,Color:LongWord):LongWord;
function FramebufferConsoleDrawBlock(Console:PConsoleDevice; X1,Y1,X2,Y2,Color:LongWord):LongWord;
function FramebufferConsoleDrawImage(Console:PConsoleDevice; X,Y:LongWord; Buffer:Pointer; Width,Height,Format,Skip:LongWord):LongWord;
function FramebufferConsoleDrawWindow(Console:PConsoleDevice; Handle:TWindowHandle; Flags:LongWord):LongWord;
function FramebufferConsoleDrawDesktop(Console:PConsoleDevice):LongWord;
function FramebufferConsoleGetPixel(Console:PConsoleDevice; X,Y:LongWord; var Color:LongWord):LongWord;
function FramebufferConsoleGetImage(Console:PConsoleDevice; X,Y:LongWord; Buffer:Pointer; Width,Height,Format,Skip:LongWord):LongWord;
function FramebufferConsolePutText(Console:PConsoleDevice; Handle:TFontHandle; const Source,Dest:TConsolePoint; Buffer:PConsoleChar; Width,Height,Skip:LongWord):LongWord;
function FramebufferConsoleCopyImage(Console:PConsoleDevice; const Source,Dest:TConsolePoint; Width,Height:LongWord):LongWord;
procedure FramebufferConsoleCaretTimer(Caret:PConsoleCaret);
procedure FramebufferConsoleShowCaret(Console:PConsoleDevice; Caret:PConsoleCaret);
procedure FramebufferConsoleHideCaret(Console:PConsoleDevice; Caret:PConsoleCaret);
function FramebufferConsoleAddCaret(Console:PConsoleDevice; Width,Height,OffsetX,OffsetY:LongWord):THandle;
function FramebufferConsoleDeleteCaret(Console:PConsoleDevice; Handle:THandle):LongWord;
function FramebufferConsoleUpdateCaret(Console:PConsoleDevice; Handle:THandle; X,Y:LongWord; Visible,Blink:Boolean):LongWord;
function FramebufferConsoleGetPosition(Console:PConsoleDevice; Position:LongWord; var X1,Y1,X2,Y2:LongWord):LongWord;
Console helper functions
function ConsoleDeviceGetCount:LongWord; inline;
function ConsoleDeviceGetDefault:PConsoleDevice; inline;
function ConsoleDeviceSetDefault(Console:PConsoleDevice):LongWord;
function ConsoleDeviceCheck(Console:PConsoleDevice):PConsoleDevice;
function ConsoleDeviceCaretCheck(Console:PConsoleDevice; Caret:PConsoleCaret):PConsoleCaret;
function ConsoleDeviceGetDefaultFont:TFontHandle;
function ConsoleFramebufferDeviceAdd(Framebuffer:PFramebufferDevice):LongWord;
function ConsoleFramebufferDeviceRemove(Framebuffer:PFramebufferDevice):LongWord;
function ConsoleFramebufferDeviceEnum(Framebuffer:PFramebufferDevice; Data:Pointer):LongWord;
function ConsoleFramebufferDeviceNotify(Device:PDevice; Data:Pointer; Notification:LongWord):LongWord;
Text console helper functions
function ConsoleWindowGetCount(Console:PConsoleDevice):LongWord; inline;
function ConsoleWindowGetActive(Console:PConsoleDevice):TWindowHandle; inline;
function ConsoleWindowGetDefault(Console:PConsoleDevice):TWindowHandle; inline;
function ConsoleWindowSetDefault(Console:PConsoleDevice; Handle:TWindowHandle):LongWord;
function ConsoleWindowCheck(Console:PConsoleDevice; Window:PConsoleWindow):PConsoleWindow;
function ConsoleWindowGetDefaultFont:TFontHandle;
function ConsoleWindowRedirectOutput(Handle:TWindowHandle):Boolean;
Return to Unit Reference