Difference between revisions of "Unit Console"

From Ultibo.org
Jump to: navigation, search
Line 1,023: Line 1,023:
 
{| class="wikitable" style="font-size: 14px; background: white;"
 
{| class="wikitable" style="font-size: 14px; background: white;"
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Console
 
| The console device to open
 
| The console device to open
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Console
 
| The console device to close
 
| The console device to close
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Console
 
| The console device to clear
 
| The console device to clear
 
|-
 
|-
! '''Color'''
+
! Color
 
| The color to use when clearing the console
 
| The color to use when clearing the console
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Console
 
| The console device to scroll
 
| The console device to scroll
 
|-
 
|-
! '''X1'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! Direction
 
| The direction to scroll (eg CONSOLE_DIRECTION_UP)
 
| The direction to scroll (eg CONSOLE_DIRECTION_UP)
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Console
 
| The console device to draw on
 
| The console device to draw on
 
|-
 
|-
! '''X1'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! Color
 
| The color to draw with (eg COLOR_WHITE)
 
| The color to draw with (eg COLOR_WHITE)
 
|-
 
|-
! '''Width'''
+
! 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'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Console
 
| The console device to draw on
 
| The console device to draw on
 
|-
 
|-
! '''X1'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! Color
 
| The color to draw with (eg COLOR_WHITE)
 
| The color to draw with (eg COLOR_WHITE)
 
|-
 
|-
! '''Width'''
+
! 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'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Console
 
| The console device to draw on
 
| The console device to draw on
 
|-
 
|-
! '''X1'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! Color
 
| The color to draw with (eg COLOR_WHITE)
 
| The color to draw with (eg COLOR_WHITE)
 
|-
 
|-
! '''Width'''
+
! 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'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Console
 
| The console device to draw on
 
| The console device to draw on
 
|-
 
|-
! '''Handle'''
+
! Handle
 
| The handle of the font to draw with
 
| The handle of the font to draw with
 
|-
 
|-
! '''Ch'''
+
! Ch
 
| The character to draw
 
| The character to draw
 
|-
 
|-
! '''X'''
+
! 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'''
+
! 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'''
+
! Forecolor
 
| The foreground color for the character (eg COLOR_WHITE)
 
| The foreground color for the character (eg COLOR_WHITE)
 
|-
 
|-
! '''Backcolor'''
+
! Backcolor
 
| The background color for the character (eg COLOR_BLACK)
 
| The background color for the character (eg COLOR_BLACK)
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Console
 
| The console device to draw on
 
| The console device to draw on
 
|-
 
|-
! '''Handle'''
+
! Handle
 
| The handle of the font to draw with
 
| The handle of the font to draw with
 
|-
 
|-
! '''Text'''
+
! Text
 
| The text to draw
 
| The text to draw
 
|-
 
|-
! '''X'''
+
! 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'''
+
! 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'''
+
! Forecolor
 
| The foreground color for the text (eg COLOR_WHITE)
 
| The foreground color for the text (eg COLOR_WHITE)
 
|-
 
|-
! '''Backcolor'''
+
! Backcolor
 
| The background color for the text (eg COLOR_BLACK)
 
| The background color for the text (eg COLOR_BLACK)
 
|-
 
|-
! '''Len'''
+
! 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'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Console
 
| The console device to draw on
 
| The console device to draw on
 
|-
 
|-
! '''X'''
+
! 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'''
+
! 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'''
+
! Color
 
| The color to draw with (eg COLOR_WHITE)
 
| The color to draw with (eg COLOR_WHITE)
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Console
 
| The console device to draw on
 
| The console device to draw on
 
|-
 
|-
! '''X1'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! Color
 
| The color to draw with (eg COLOR_WHITE)
 
| The color to draw with (eg COLOR_WHITE)
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Console
 
| The console device to draw on
 
| The console device to draw on
 
|-
 
|-
! '''X'''
+
! 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'''
+
! 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'''
+
! Color
 
| The color to draw with (eg COLOR_WHITE)
 
| The color to draw with (eg COLOR_WHITE)
 
|-
 
|-
! '''Width'''
+
! 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'''
+
! 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'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Console
 
| The console device to draw on
 
| The console device to draw on
 
|-
 
|-
! '''X'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! Format
 
| The color format of the image (eg COLOR_FORMAT_RGB24)
 
| The color format of the image (eg COLOR_FORMAT_RGB24)
 
|-
 
|-
! '''Skip'''
+
! 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'''
+
! 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'''
+
! Console
 
| The console device to draw on
 
| The console device to draw on
 
|-
 
|-
! '''Handle'''
+
! Handle
 
| The handle of the console window to draw
 
| The handle of the console window to draw
 
|-
 
|-
! '''Flags'''
+
! 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'''
+
! 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'''
+
! Console
 
| The console device to read from
 
| The console device to read from
 
|-
 
|-
! '''X'''
+
! 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'''
+
! 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'''
+
! Color
 
| The color value read from the console (eg COLOR_WHITE)
 
| The color value read from the console (eg COLOR_WHITE)
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Console
 
| The console device to read from
 
| The console device to read from
 
|-
 
|-
! '''X'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! Console
 
| The console device to output to
 
| The console device to output to
 
|-
 
|-
! '''Source'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! Width
 
| The width of the area to be output (Characters)
 
| The width of the area to be output (Characters)
 
|-
 
|-
! '''Height'''
+
! Height
 
| The height of the area to be output (Characters)
 
| The height of the area to be output (Characters)
 
|-
 
|-
! '''Skip'''
+
! 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'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Console
 
| The console device to copy on
 
| The console device to copy on
 
|-
 
|-
! '''Source'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! Console
 
| The console device to create the caret on
 
| The console device to create the caret on
 
|-
 
|-
! '''Width'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! Console
 
| The console device to delete the caret on
 
| The console device to delete the caret on
 
|-
 
|-
! '''Handle'''
+
! Handle
 
| The handle of the caret to delete (as returned from ConsoleDeviceAddCaret)
 
| The handle of the caret to delete (as returned from ConsoleDeviceAddCaret)
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Console
 
| The console device to update the caret on
 
| The console device to update the caret on
 
|-
 
|-
! '''Handle'''
+
! Handle
 
| The handle of the caret to update (as returned from ConsoleDeviceAddCaret)
 
| The handle of the caret to update (as returned from ConsoleDeviceAddCaret)
 
|-
 
|-
! '''X'''
+
! 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'''
+
! 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'''
+
! Visible
 
| If true then show the caret else hide it
 
| If true then show the caret else hide it
 
|-
 
|-
! '''Blink'''
+
! Blink
 
| If true then blink the caret at the default blink rate
 
| If true then blink the caret at the default blink rate
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Console
 
| The console device to set the cursor
 
| The console device to set the cursor
 
|-
 
|-
! '''Width'''
+
! Width
 
| The width of the cursor in characters
 
| The width of the cursor in characters
 
|-
 
|-
! '''Height'''
+
! Height
 
| The height of the cursor in characters
 
| The height of the cursor in characters
 
|-
 
|-
! '''Chars'''
+
! Chars
 
| A buffer containing the cursor characters
 
| A buffer containing the cursor characters
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Console
 
| The console device to update the cursor
 
| The console device to update the cursor
 
|-
 
|-
! '''Enabled'''
+
! Enabled
 
| If true then show the cursor else hide it
 
| If true then show the cursor else hide it
 
|-
 
|-
! '''X'''
+
! X
 
| The cursor X location in characters
 
| The cursor X location in characters
 
|-
 
|-
! '''Y'''
+
! Y
 
| The cursor Y location in characters
 
| The cursor Y location in characters
 
|-
 
|-
! '''Relative'''
+
! 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'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Console
 
| The console device to get from
 
| The console device to get from
 
|-
 
|-
! '''Position'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! Console
 
| The console device to get properties from
 
| The console device to get properties from
 
|-
 
|-
! '''Properties'''
+
! Properties
 
| Pointer to a TConsoleProperties structure to return
 
| Pointer to a TConsoleProperties structure to return
 
|-
 
|-
! '''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'''
+
! Console
 
| The console device to check
 
| The console device to check
 
|-
 
|-
! '''Flag'''
+
! Flag
 
| The console flag to check (eg CONSOLE_FLAG_FULLSCREEN)
 
| The console flag to check (eg CONSOLE_FLAG_FULLSCREEN)
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Console
 
| The console device to set or clear the flag on
 
| The console device to set or clear the flag on
 
|-
 
|-
! '''Flag'''
+
! 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'''
+
! Clear
 
| If true clear the flag, else set it
 
| If true clear the flag, else set it
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Console
 
| The console device to get from
 
| The console device to get from
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Console
 
| The console device to get from
 
| The console device to get from
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! 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
 
| 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'''
+
! 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'''
+
! Console
 
| The console device to destroy
 
| The console device to destroy
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Console
 
| The console device to register
 
| The console device to register
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Console
 
| The console device to deregister
 
| The console device to deregister
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! ConsoleId
 
| The ID number of the console to find
 
| The ID number of the console to find
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Device
 
| Pointer to the related device to find
 
| Pointer to the related device to find
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Name
 
| The name of the console to find (eg Console0)
 
| The name of the console to find (eg Console0)
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Description
 
| The description of the console to find (eg Framebuffer Console (Framebuffer0))
 
| The description of the console to find (eg Framebuffer Console (Framebuffer0))
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Callback
 
| The callback function to call for each console in the table
 
| The callback function to call for each console in the table
 
|-
 
|-
! '''Data'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! Callback
 
| The function to call when a notification event occurs
 
| The function to call when a notification event occurs
 
|-
 
|-
! '''Data'''
+
! 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'''
+
! Notification
 
| The events to register for notification of (eg DEVICE_NOTIFICATION_REGISTER)
 
| The events to register for notification of (eg DEVICE_NOTIFICATION_REGISTER)
 
|-
 
|-
! '''Flags'''
+
! 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'''
+
! Console
 
| The console device to create the new window on
 
| The console device to create the new window on
 
|-
 
|-
! '''Position'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! Console
 
| The console device to create the new window on
 
| The console device to create the new window on
 
|-
 
|-
! '''Font'''
+
! Font
 
| The handle of the default font for the new console window
 
| The handle of the default font for the new console window
 
|-
 
|-
! '''Size'''
+
! 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'''
+
! 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'''
+
! Mode
 
| The mode of the new console window (Normally WINDOW_MODE_TEXT)
 
| The mode of the new console window (Normally WINDOW_MODE_TEXT)
 
|-
 
|-
! '''Position'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! Handle
 
| The handle of the window to destroy
 
| The handle of the window to destroy
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to show
 
| The handle of the window to show
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to hide
 
| The handle of the window to hide
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to activate
 
| The handle of the window to activate
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to deactivate
 
| The handle of the window to deactivate
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Console
 
| The console device to change the active window on
 
| The console device to change the active window on
 
|-
 
|-
! '''Visible'''
+
! Visible
 
| If true only return windows that are visible
 
| If true only return windows that are visible
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Console
 
| The console device to change the active window on
 
| The console device to change the active window on
 
|-
 
|-
! '''Visible'''
+
! Visible
 
| If true only return windows that are visible
 
| If true only return windows that are visible
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Console
 
| The console device to find the window on
 
| The console device to find the window on
 
|-
 
|-
! '''X'''
+
! X
 
| The X coordinate to find the window for
 
| The X coordinate to find the window for
 
|-
 
|-
! '''Y'''
+
! Y
 
| The Y coordinate to find the window for
 
| The Y coordinate to find the window for
 
|-
 
|-
! '''Visible'''
+
! Visible
 
| If true only return windows that are visible
 
| If true only return windows that are visible
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Console
 
| The console device to find the window on
 
| The console device to find the window on
 
|-
 
|-
! '''Position'''
+
! Position
 
| The window position to find (eg CONSOLE_POSITION_FULL)
 
| The window position to find (eg CONSOLE_POSITION_FULL)
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Console
 
| The console device to enumerate windows for
 
| The console device to enumerate windows for
 
|-
 
|-
! '''Callback'''
+
! Callback
 
| The function to call for each window enumerated
 
| The function to call for each window enumerated
 
|-
 
|-
! '''Data'''
+
! 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'''
+
! 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'''
+
! Handle
 
| The handle of the window to check
 
| The handle of the window to check
 
|-
 
|-
! '''Flag'''
+
! Flag
 
| The window flag to check for (eg WINDOW_FLAG_LINE_WRAP")
 
| The window flag to check for (eg WINDOW_FLAG_LINE_WRAP")
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! Clear
 
| If true clear the flag, else set it
 
| If true clear the flag, else set it
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to get the mode for
 
| The handle of the window to get the mode for
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to get the state for
 
| The handle of the window to get the state for
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to get the position for
 
| The handle of the window to get the position for
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to set the position for
 
| The handle of the window to set the position for
 
|-
 
|-
! '''Position'''
+
! Position
 
| The new window position to set
 
| The new window position to set
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to get the properties from
 
| The handle of the window to get the properties from
 
|-
 
|-
! '''Properties'''
+
! Properties
 
| Pointer to a TWindowProperties structure to fill in
 
| Pointer to a TWindowProperties structure to fill in
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to get MinX for
 
| The handle of the window to get MinX for
 
|-
 
|-
! '''Return'''
+
! Return
 
| The minimum X value for the current window viewport
 
| The minimum X value for the current window viewport
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to get MinY for
 
| The handle of the window to get MinY for
 
|-
 
|-
! '''Return'''
+
! Return
 
| The minimum Y value for the current window viewport
 
| The minimum Y value for the current window viewport
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to get MaxX for
 
| The handle of the window to get MaxX for
 
|-
 
|-
! '''Return'''
+
! Return
 
| The maximum X value for the current window viewport
 
| The maximum X value for the current window viewport
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to get MaxY for
 
| The handle of the window to get MaxY for
 
|-
 
|-
! '''Return'''
+
! Return
 
| The maximum Y value for the current window viewport
 
| The maximum Y value for the current window viewport
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to get the rectangle for
 
| The handle of the window to get the rectangle for
 
|-
 
|-
! '''Return'''
+
! Return
 
| The rectangle of the current window viewport
 
| The rectangle of the current window viewport
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to set the rectangle for
 
| The handle of the window to set the rectangle for
 
|-
 
|-
! '''Rect'''
+
! Rect
 
| The rectangle to set for the window viewport
 
| The rectangle to set for the window viewport
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to reset the viewport for
 
| The handle of the window to reset the viewport for
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to get the viewport for
 
| The handle of the window to get the viewport for
 
|-
 
|-
! '''X1'''
+
! X1
 
| The left edge of the current viewport
 
| The left edge of the current viewport
 
|-
 
|-
! '''Y1'''
+
! Y1
 
| The top edge of the current viewport
 
| The top edge of the current viewport
 
|-
 
|-
! '''X2'''
+
! X2
 
| The right edge of the current viewport
 
| The right edge of the current viewport
 
|-
 
|-
! '''Y2'''
+
! Y2
 
| The bottom edge of the current viewport
 
| The bottom edge of the current viewport
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to get the viewport for
 
| The handle of the window to get the viewport for
 
|-
 
|-
! '''X1'''
+
! X1
 
| The left edge of the window viewport
 
| The left edge of the window viewport
 
|-
 
|-
! '''Y1'''
+
! Y1
 
| The top edge of the window viewport
 
| The top edge of the window viewport
 
|-
 
|-
! '''X2'''
+
! X2
 
| The right edge of the window viewport
 
| The right edge of the window viewport
 
|-
 
|-
! '''Y2'''
+
! Y2
 
| The bottom edge of the window viewport
 
| The bottom edge of the window viewport
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to reset the viewport for
 
| The handle of the window to reset the viewport for
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to get X for
 
| The handle of the window to get X for
 
|-
 
|-
! '''Return'''
+
! Return
 
| The X value for the window
 
| The X value for the window
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to set X for
 
| The handle of the window to set X for
 
|-
 
|-
! '''X'''
+
! X
 
| The new X value to set
 
| The new X value to set
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to get Y for
 
| The handle of the window to get Y for
 
|-
 
|-
! '''Return'''
+
! Return
 
| The Y value for the window
 
| The Y value for the window
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to set Y for
 
| The handle of the window to set Y for
 
|-
 
|-
! '''Y'''
+
! Y
 
| The new Y value to set
 
| The new Y value to set
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to get X and Y for
 
| The handle of the window to get X and Y for
 
|-
 
|-
! '''X'''
+
! X
 
| The returned X value
 
| The returned X value
 
|-
 
|-
! '''Y'''
+
! Y
 
| The returned Y value
 
| The returned Y value
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to set X and Y for
 
| The handle of the window to set X and Y for
 
|-
 
|-
! '''X'''
+
! X
 
| The new X value
 
| The new X value
 
|-
 
|-
! '''Y'''
+
! Y
 
| The new Y value
 
| The new Y value
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to get the point for
 
| The handle of the window to get the point for
 
|-
 
|-
! '''Return'''
+
! Return
 
| The current point of the window
 
| The current point of the window
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to set the point for
 
| The handle of the window to set the point for
 
|-
 
|-
! '''Point'''
+
! Point
 
| The new point to set for the window
 
| The new point to set for the window
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to get columns for
 
| The handle of the window to get columns for
 
|-
 
|-
! '''Return'''
+
! Return
 
| The columns value for the current window viewport
 
| The columns value for the current window viewport
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to get rows for
 
| The handle of the window to get rows for
 
|-
 
|-
! '''Return'''
+
! Return
 
| The rows value for the current window viewport
 
| The rows value for the current window viewport
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to get the width for
 
| The handle of the window to get the width for
 
|-
 
|-
! '''Return'''
+
! Return
 
| The absolute width of the window
 
| The absolute width of the window
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to get the height for
 
| The handle of the window to get the height for
 
|-
 
|-
! '''Return'''
+
! Return
 
| The absolute height of the window
 
| The absolute height of the window
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to get the format for
 
| The handle of the window to get the format for
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to get the foreground color for
 
| The handle of the window to get the foreground color for
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to set the foreground color for
 
| The handle of the window to set the foreground color for
 
|-
 
|-
! '''Color'''
+
! Color
 
| The foreground color to set (eg COLOR_WHITE)
 
| The foreground color to set (eg COLOR_WHITE)
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to get the background color for
 
| The handle of the window to get the background color for
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to set the background color for
 
| The handle of the window to set the background color for
 
|-
 
|-
! '''Color'''
+
! Color
 
| The background color to set (eg COLOR_BLACK)
 
| The background color to set (eg COLOR_BLACK)
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to get the default font for
 
| The handle of the window to get the default font for
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to set the default font for
 
| The handle of the window to set the default font for
 
|-
 
|-
! '''Font'''
+
! Font
 
| The font handle of the default font to set
 
| The font handle of the default font to set
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! 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'''
+
! X
 
| The returned cursor X value
 
| The returned cursor X value
 
|-
 
|-
! '''Y'''
+
! Y
 
| The returned cursor Y value
 
| The returned cursor Y value
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! 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'''
+
! X
 
| The new cursor X value
 
| The new cursor X value
 
|-
 
|-
! '''Y'''
+
! Y
 
| The new cursor Y value
 
| The new cursor Y value
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to get the mode for
 
| The handle of the window to get the mode for
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to set the mode for
 
| The handle of the window to set the mode for
 
|-
 
|-
! '''CursorMode'''
+
! CursorMode
 
| The cursor mode to set (eg CURSOR_MODE_INSERT)
 
| The cursor mode to set (eg CURSOR_MODE_INSERT)
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to get blink state for
 
| The handle of the window to get blink state for
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to set the blink state for
 
| The handle of the window to set the blink state for
 
|-
 
|-
! '''CursorBlink'''
+
! CursorBlink
| True to enable blink, False to disable
+
| True to enable blink, False to disable.
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to get the state for
 
| The handle of the window to get the state for
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to set the state for
 
| The handle of the window to set the state for
 
|-
 
|-
! '''CursorState'''
+
! CursorState
 
| The cursor state to set (eg CURSOR_STATE_ON)
 
| The cursor state to set (eg CURSOR_STATE_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,069: Line 3,069:
 
{| class="wikitable" style="font-size: 14px; background: white;"*
 
{| class="wikitable" style="font-size: 14px; background: white;"*
 
|-
 
|-
! '''Handle'''
+
! Handle
 
| The handle of the window to get the shape for
 
| The handle of the window to get the shape for
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to set the shape for
 
| The handle of the window to set the shape for
 
|-
 
|-
! '''CursorShape'''
+
! CursorShape
 
| The cursor shape to set (eg CURSOR_SHAPE_LINE)
 
| The cursor shape to set (eg CURSOR_SHAPE_LINE)
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to enable the cursor for
 
| The handle of the window to enable the cursor for
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to disable the cursor for
 
| The handle of the window to disable the cursor for
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to change the cursor for
 
| The handle of the window to change the cursor for
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to change the cursor for
 
| The handle of the window to change the cursor for
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to change the cursor for
 
| The handle of the window to change the cursor for
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to move the cursor for
 
| The handle of the window to move the cursor for
 
|-
 
|-
! '''X'''
+
! X
 
| The column to move the cursor to
 
| The column to move the cursor to
 
|-
 
|-
! '''Y'''
+
! Y
 
| The row to move the cursor to
 
| The row to move the cursor to
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to set the blink state for
 
| The handle of the window to set the blink state for
 
|-
 
|-
! '''Enabled'''
+
! Enabled
 
| True if the cursor is blinking, False if not
 
| True if the cursor is blinking, False if not
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to add to
 
| The handle of the window to add to
 
|-
 
|-
! '''Value'''
+
! Value
 
| The text to add to the command history
 
| The text to add to the command history
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to clear
 
| The handle of the window to clear
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to get from
 
| The handle of the window to get from
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to get from
 
| The handle of the window to get from
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to get from
 
| The handle of the window to get from
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to get from
 
| The handle of the window to get from
 
|-
 
|-
! '''Return'''
+
! Return
 
| The command history value or an empty string on failure
 
| The command history value or an empty string on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to get from
 
| The handle of the window to get from
 
|-
 
|-
! '''Return'''
+
! Return
 
| The command history value or an empty string on failure
 
| The command history value or an empty string on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to scroll
 
| The handle of the window to scroll
 
|-
 
|-
! '''Row'''
+
! 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'''
+
! 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'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to scroll
 
| The handle of the window to scroll
 
|-
 
|-
! '''Row'''
+
! 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'''
+
! 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'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to scroll
 
| The handle of the window to scroll
 
|-
 
|-
! '''Row'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to scroll
 
| The handle of the window to scroll
 
|-
 
|-
! '''Row'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to clear
 
| The handle of the window to clear
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to clear
 
| The handle of the window to clear
 
|-
 
|-
! '''X1'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! Cursor
 
| If True update the cursor position after clearing
 
| If True update the cursor position after clearing
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to write text on
 
| The handle of the window to write text on
 
|-
 
|-
! '''Text'''
+
! Text
 
| The text to write
 
| The text to write
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to write text on
 
| The handle of the window to write text on
 
|-
 
|-
! '''Text'''
+
! Text
 
| The text to write
 
| The text to write
 
|-
 
|-
! '''X'''
+
! X
 
| The column to start writing the text at
 
| The column to start writing the text at
 
|-
 
|-
! '''Y'''
+
! Y
 
| The row to start writing the text at
 
| The row to start writing the text at
 
|-
 
|-
! '''Forecolor'''
+
! Forecolor
 
| The foreround color to use (eg COLOR_WHITE)
 
| The foreround color to use (eg COLOR_WHITE)
 
|-
 
|-
! '''Backcolor'''
+
! Backcolor
 
| The foreround color to use (eg COLOR_BLACK)
 
| The foreround color to use (eg COLOR_BLACK)
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to write text on
 
| The handle of the window to write text on
 
|-
 
|-
! '''Text'''
+
! Text
 
| The text to write
 
| The text to write
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to write text on
 
| The handle of the window to write text on
 
|-
 
|-
! '''Text'''
+
! Text
 
| The text to write
 
| The text to write
 
|-
 
|-
! '''X'''
+
! X
 
| The column to start writing the text at
 
| The column to start writing the text at
 
|-
 
|-
! '''Y'''
+
! Y
 
| The row to start writing the text at
 
| The row to start writing the text at
 
|-
 
|-
! '''Forecolor'''
+
! Forecolor
 
| The foreround color to use (eg COLOR_WHITE)
 
| The foreround color to use (eg COLOR_WHITE)
 
|-
 
|-
! '''Backcolor'''
+
! Backcolor
 
| The foreround color to use (eg COLOR_BLACK)
 
| The foreround color to use (eg COLOR_BLACK)
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to write the character on
 
| The handle of the window to write the character on
 
|-
 
|-
! '''Chr'''
+
! Chr
 
| The character to write
 
| The character to write
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Handle
 
| The handle of the window to write the character on
 
| The handle of the window to write the character on
 
|-
 
|-
! '''Chr'''
+
! Chr
 
| The character to write
 
| The character to write
 
|-
 
|-
! '''X'''
+
! X
 
| The column to start writing the character at
 
| The column to start writing the character at
 
|-
 
|-
! '''Y'''
+
! Y
 
| The row to start writing the character at
 
| The row to start writing the character at
 
|-
 
|-
! '''Forecolor'''
+
! Forecolor
 
| The foreround color to use (eg COLOR_WHITE)
 
| The foreround color to use (eg COLOR_WHITE)
 
|-
 
|-
! '''Backcolor'''
+
! Backcolor
 
| The foreround color to use (eg COLOR_BLACK)
 
| The foreround color to use (eg COLOR_BLACK)
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The console window to output to
 
| The console window to output to
 
|-
 
|-
! '''Source'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! Width
 
| The width of the area to be output (Characters)
 
| The width of the area to be output (Characters)
 
|-
 
|-
! '''Height'''
+
! Height
 
| The height of the area to be output (Characters)
 
| The height of the area to be output (Characters)
 
|-
 
|-
! '''Skip'''
+
! 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'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to echo input to
 
| The handle of the window to echo input to
 
|-
 
|-
! '''Text'''
+
! Text
 
| The text read from the console on return
 
| The text read from the console on return
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to echo input to
 
| The handle of the window to echo input to
 
|-
 
|-
! '''Text'''
+
! Text
 
| The text read from the console on return
 
| The text read from the console on return
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to echo input to
 
| The handle of the window to echo input to
 
|-
 
|-
! '''Text'''
+
! Text
 
| The text read from the console on return
 
| The text read from the console on return
 
|-
 
|-
! '''Prompt'''
+
! 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'''
+
! X
 
| The starting X position for the output (0 for current position)
 
| The starting X position for the output (0 for current position)
 
|-
 
|-
! '''Y'''
+
! Y
 
| The starting Y position for the output (0 for current position)
 
| The starting Y position for the output (0 for current position)
 
|-
 
|-
! '''Forecolor'''
+
! Forecolor
 
| The text forecolor for the output (COLOR_NONE for current color)
 
| The text forecolor for the output (COLOR_NONE for current color)
 
|-
 
|-
! '''Backcolor'''
+
! Backcolor
 
| The text backcolor for the output (COLOR_NONE for current color)
 
| The text backcolor for the output (COLOR_NONE for current color)
 
|-
 
|-
! '''Scroll'''
+
! Scroll
 
| If true then scroll up one line on return
 
| If true then scroll up one line on return
 
|-
 
|-
! '''History'''
+
! 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'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to echo input to
 
| The handle of the window to echo input to
 
|-
 
|-
! '''Chr'''
+
! Chr
 
| The character read from the console on return
 
| The character read from the console on return
 
|-
 
|-
! '''Return'''
+
! Return
 
| ERROR_SUCCESS if completed or another error code on failure
 
| ERROR_SUCCESS if completed or another error code on failure
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Handle
 
| The handle of the window to echo input to
 
| The handle of the window to echo input to
 
|-
 
|-
! '''Chr'''
+
! Chr
 
| The character read from the console on return
 
| The character read from the console on return
 
|-
 
|-
! '''Prompt'''
+
! 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'''
+
! X
 
| The starting X position for the output (0 for current position)
 
| The starting X position for the output (0 for current position)
 
|-
 
|-
! '''Y'''
+
! Y
 
| The starting Y position for the output (0 for current position)
 
| The starting Y position for the output (0 for current position)
 
|-
 
|-
! '''Forecolor'''
+
! Forecolor
 
| The text forecolor for the output (COLOR_NONE for current color)
 
| The text forecolor for the output (COLOR_NONE for current color)
 
|-
 
|-
! '''Backcolor'''
+
! Backcolor
 
| The text backcolor for the output (COLOR_NONE for current color)
 
| The text backcolor for the output (COLOR_NONE for current color)
 
|-
 
|-
! '''Echo'''
+
! Echo
 
| If true then echo the character to the console window
 
| If true then echo the character to the console window
 
|-
 
|-
! '''Scroll'''
+
! Scroll
 
| If true then scroll up one line on return
 
| If true then scroll up one line on return
 
|-
 
|-
! '''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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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
 
| 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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
! '''Note'''
+
| 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! Text
 
| The text to write
 
| The text to write
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! Text
 
| The text to write
 
| The text to write
 
|-
 
|-
! '''Note'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! Console
 
| The console device to search for the caret
 
| The console device to search for the caret
 
|-
 
|-
! '''Caret'''
+
! Caret
 
| The caret entry to check for validity
 
| The caret entry to check for validity
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! Console
 
| The console device to get the window count for
 
| The console device to get the window count for
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Console
 
| The console device to get the active window for
 
| The console device to get the active window for
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Console
 
| The console device to get the default window for
 
| The console device to get the default window for
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Console
 
| The console device to set the default window for
 
| The console device to set the default window for
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! Console
 
| The console device to search for the window
 
| The console device to search for the window
 
|-
 
|-
! '''Window'''
+
! Window
 
| The window entry to check for validity
 
| The window entry to check for validity
 
|-
 
|-
! '''Return'''
+
! 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'''
+
! 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'''
+
! 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'''
+
! Return
 
| True if completed successfully or False if an error occurred
 
| True if completed successfully or False if an error occurred
 
|-
 
|-
! '''Note'''
+
! 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


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



[Expand]
Console specific constants CONSOLE_*


[Expand]
Console device type CONSOLE_TYPE_*


[Expand]
Console device state CONSOLE_STATE_*


[Expand]
Console device flag CONSOLE_FLAG_*


[Expand]
Console device mode CONSOLE_MODE_*


[Expand]
Console caret signature CARET_SIGNATURE*


[Expand]
Console window signature WINDOW_SIGNATURE_*


[Expand]
Console window state WINDOW_STATE_*


[Expand]
Console window mode WINDOW_MODE_*


[Expand]
Console window flag WINDOW_FLAG_*


[Expand]
Console window draw flag WINDOW_DRAW_FLAG_*


[Expand]
Console window history WINDOW_HISTORY_*


[Expand]
Framebuffer console FRAMEBUFFER_CONSOLE_*


Type definitions



Cursor state

TCursorState = (CURSORON,CURSOROFF);

Console char

[Expand]

PConsoleChar = ^TConsoleChar;

TConsoleChar = record

Console point

[Expand]

TConsolePoint = record

Console rect

[Expand]

TConsoleRect = record

Console properties

[Expand]

PConsoleProperties = ^TConsoleProperties;

TConsoleProperties = record

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

[Expand]

PConsoleDevice = ^TConsoleDevice;

TConsoleDevice = record

Window properties

[Expand]

PWindowProperties = ^TWindowProperties;

TWindowProperties = record

Console window enumeration callback

TConsoleWindowEnumerate = function(Console:PConsoleDevice; Handle:TWindowHandle; Data:Pointer):LongWord;

Console window

[Expand]

PConsoleWindow = ^TConsoleWindow;

TConsoleWindow = record

Framebuffer console

[Expand]

PFramebufferConsole = ^TFramebufferConsole;

TFramebufferConsole = record


Public variables


None defined

Function declarations



Initialization functions

[Expand]
procedure ConsoleInit;
Description: Initialize the Console unit and Console device table


Console functions

[Expand]
function ConsoleDeviceOpen(Console:PConsoleDevice):LongWord;
Description: Open a console device ready for drawing


[Expand]
function ConsoleDeviceClose(Console:PConsoleDevice):LongWord;
Description: Close a console device to prevent drawing


[Expand]
function ConsoleDeviceClear(Console:PConsoleDevice; Color:LongWord):LongWord;
Description: Clear a console device using the specified color


[Expand]
function ConsoleDeviceScroll(Console:PConsoleDevice; X1,Y1,X2,Y2,Count,Direction:LongWord):LongWord;
Description: Scroll all or part of a console device in the specified direction


[Expand]
function ConsoleDeviceDrawBox(Console:PConsoleDevice; X1,Y1,X2,Y2,Color,Width:LongWord):LongWord;
Description: Draw an outline of a box on a console device


[Expand]
function ConsoleDeviceDrawLine(Console:PConsoleDevice; X1,Y1,X2,Y2,Color,Width:LongWord):LongWord;
Description: Draw a horizontal or vertical line on a console device


[Expand]
function ConsoleDevicePlotLine(Console:PConsoleDevice; X1,Y1,X2,Y2,Color,Width:LongWord):LongWord;
Description: Draw a line in any direction on a console device


[Expand]
function ConsoleDeviceDrawChar(Console:PConsoleDevice; Handle:TFontHandle; Ch:Char; X,Y,Forecolor,Backcolor:LongWord):LongWord;
Description: Draw a character on a console device


[Expand]
function ConsoleDeviceDrawText(Console:PConsoleDevice; Handle:TFontHandle; const Text:String; X,Y,Forecolor,Backcolor,Len:LongWord):LongWord;
Description: Draw a text string on a console device


[Expand]
function ConsoleDeviceDrawPixel(Console:PConsoleDevice; X,Y,Color:LongWord):LongWord;
Description: Draw a pixel on a console device


[Expand]
function ConsoleDeviceDrawBlock(Console:PConsoleDevice; X1,Y1,X2,Y2,Color:LongWord):LongWord;
Description: Draw a filled block on a console device


[Expand]
function ConsoleDeviceDrawCircle(Console:PConsoleDevice; X,Y,Color,Width,Radius:LongWord):LongWord;
Description: Draw a circle on a console device


[Expand]
function ConsoleDeviceDrawImage(Console:PConsoleDevice; X,Y:LongWord; Buffer:Pointer; Width,Height,Format,Skip:LongWord):LongWord;
Description: Draw an image on a console device


[Expand]
function ConsoleDeviceDrawWindow(Console:PConsoleDevice; Handle:TWindowHandle; Flags:LongWord):LongWord;
Description: Draw a console window on a console device


[Expand]
function ConsoleDeviceGetPixel(Console:PConsoleDevice; X,Y:LongWord; var Color:LongWord):LongWord;
Description: Read a pixel from a console device


[Expand]
function ConsoleDeviceGetImage(Console:PConsoleDevice; X,Y:LongWord; Buffer:Pointer; Width,Height,Format,Skip:LongWord):LongWord;
Description: Read an image from a console device


[Expand]
function ConsoleDevicePutText(Console:PConsoleDevice; Handle:TFontHandle; const Source,Dest:TConsolePoint; Buffer:PConsoleChar; Width,Height,Skip:LongWord):LongWord;
Description: Output a rectangular area of text to a console device


[Expand]
function ConsoleDeviceCopyImage(Console:PConsoleDevice; const Source,Dest:TConsolePoint; Width,Height:LongWord):LongWord;
Description: Copy an image within a console device


[Expand]
function ConsoleDeviceAddCaret(Console:PConsoleDevice; Width,Height,OffsetX,OffsetY:LongWord):THandle;
Description: Create a new caret (cursor) of the specified size


[Expand]
function ConsoleDeviceDeleteCaret(Console:PConsoleDevice; Handle:THandle):LongWord;
Description: Delete an existing caret (cursor)


[Expand]
function ConsoleDeviceUpdateCaret(Console:PConsoleDevice; Handle:THandle; X,Y:LongWord; Visible,Blink:Boolean):LongWord;
Description: Update an existing carets position, visibility or blink


[Expand]
function ConsoleDeviceSetCursor(Console:PConsoleDevice; Width,Height:LongWord; Chars:PChar):LongWord;
Description: Set the mouse cursor properties of a console device (CONSOLE_MODE_CHARACTER only)


[Expand]
function ConsoleDeviceUpdateCursor(Console:PConsoleDevice; Enabled:Boolean; X,Y:LongInt; Relative:Boolean):LongWord;
Description: Update the position and state for the mouse cursor of a console device (CONSOLE_MODE_CHARACTER only)


[Expand]
function ConsoleDeviceGetPosition(Console:PConsoleDevice; Position:LongWord; var X1,Y1,X2,Y2:LongWord):LongWord;
Description: Get the coordinates of a console position from a console device


[Expand]
function ConsoleDeviceGetProperties(Console:PConsoleDevice; Properties:PConsoleProperties):LongWord;
Description: Get the current properties from a console device


[Expand]
function ConsoleDeviceCheckFlag(Console:PConsoleDevice; Flag:LongWord):Boolean;
Description: Check if a console device supports a flag value


[Expand]
function ConsoleDeviceUpdateFlag(Console:PConsoleDevice; Flag:LongWord; Clear:Boolean):LongWord;
Description: Set or clear a flag on a console device


[Expand]
function ConsoleDeviceGetMode(Console:PConsoleDevice):LongWord;
Description: Get the mode of a console device


[Expand]
function ConsoleDeviceGetState(Console:PConsoleDevice):LongWord;
Description: Get the state of a console device


[Expand]
function ConsoleDeviceCreate:PConsoleDevice;
Description: Create a new Console entry


[Expand]
function ConsoleDeviceCreateEx(Size:LongWord):PConsoleDevice;
Description: Create a new Console entry


[Expand]
function ConsoleDeviceDestroy(Console:PConsoleDevice):LongWord;
Description: Destroy an existing Console entry


[Expand]
function ConsoleDeviceRegister(Console:PConsoleDevice):LongWord;
Description: Register a new Console in the Console table


[Expand]
function ConsoleDeviceDeregister(Console:PConsoleDevice):LongWord;
Description: Deregister a Console from the Console table


[Expand]
function ConsoleDeviceFind(ConsoleId:LongWord):PConsoleDevice;
Description: Find a console device by ID in the console table


[Expand]
function ConsoleDeviceFindByDevice(Device:PDevice):PConsoleDevice;
Description: Find a console device by its related device in the console table


[Expand]
function ConsoleDeviceFindByName(const Name:String):PConsoleDevice; inline;
Description: Find a console device by name in the console table


[Expand]
function ConsoleDeviceFindByDescription(const Description:String):PConsoleDevice; inline;
Description: Find a console device by description in the console table


[Expand]
function ConsoleDeviceEnumerate(Callback:TConsoleEnumerate; Data:Pointer):LongWord;
Description: Enumerate all console devices in the console table


[Expand]
function ConsoleDeviceNotification(Console:PConsoleDevice; Callback:TConsoleNotification; Data:Pointer; Notification,Flags:LongWord):LongWord;
Description: Register a notification for console device changes


Text console functions

[Expand]
function ConsoleWindowCreate(Console:PConsoleDevice; Position:LongWord; Default:Boolean):TWindowHandle;
Description: Create a new Console window


[Expand]
function ConsoleWindowCreateEx(Console:PConsoleDevice; Font:TFontHandle; Size,State,Mode,Position:LongWord; Default:Boolean):TWindowHandle;
Description: Create a new Console window


[Expand]
function ConsoleWindowDestroy(Handle:TWindowHandle):LongWord;
Description: Close and Destroy an existing console window


[Expand]
function ConsoleWindowShow(Handle:TWindowHandle):LongWord;
Description: Make an existing console window visible and show it on screen


[Expand]
function ConsoleWindowHide(Handle:TWindowHandle):LongWord;
Description: Make an existing console window invisible and hide it on screen


[Expand]
function ConsoleWindowActivate(Handle:TWindowHandle):LongWord;
Description: Make an existing console window the active window


[Expand]
function ConsoleWindowDeactivate(Handle:TWindowHandle):LongWord;
Description: Make an existing console window inactive


[Expand]
function ConsoleWindowNext(Console:PConsoleDevice; Visible:Boolean):TWindowHandle;
Description: Get the next console window starting with the active window


[Expand]
function ConsoleWindowPrevious(Console:PConsoleDevice; Visible:Boolean):TWindowHandle;
Description: Get the previous console window starting with the active window


[Expand]
function ConsoleWindowAt(Console:PConsoleDevice; X,Y:LongWord; Visible:Boolean):TWindowHandle;
Description: Find the console window that X and Y coordinates are within


[Expand]
function ConsoleWindowFind(Console:PConsoleDevice; Position:LongWord):TWindowHandle;
Description: Find an existing console window in the position specified


[Expand]
function ConsoleWindowEnumerate(Console:PConsoleDevice; Callback:TConsoleWindowEnumerate; Data:Pointer):LongWord;
Description: Enumerate existing console windows on the specified console device


[Expand]
function ConsoleWindowCheckFlag(Handle:TWindowHandle; Flag:LongWord):Boolean;
Description: Check an existing console window to determine if a flag is set or not


[Expand]
function ConsoleWindowUpdateFlag(Handle:TWindowHandle; Flag:LongWord; Clear:Boolean):LongWord;
Description: Set or clear a flag on an existing console window


[Expand]
function ConsoleWindowGetMode(Handle:TWindowHandle):LongWord;
Description: Get the window mode of an existing console window


[Expand]
function ConsoleWindowGetState(Handle:TWindowHandle):LongWord;
Description: Get the window state of an existing console window


[Expand]
function ConsoleWindowGetPosition(Handle:TWindowHandle):LongWord;
Description: Get the position of an existing console window


[Expand]
function ConsoleWindowSetPosition(Handle:TWindowHandle; Position:LongWord):LongWord;
Description: Set the position of an existing console window


[Expand]
function ConsoleWindowGetProperties(Handle:TWindowHandle; Properties:PWindowProperties):LongWord;
Description: Get the properties for the specified console window


[Expand]
function ConsoleWindowGetMinX(Handle:TWindowHandle):LongWord;
Description: Get the current minimum X of the window viewport for an existing console window


[Expand]
function ConsoleWindowGetMinY(Handle:TWindowHandle):LongWord;
Description: Get the current minimum Y of the window viewport for an existing console window


[Expand]
function ConsoleWindowGetMaxX(Handle:TWindowHandle):LongWord;
Description: Get the current maximum X of the window viewport for an existing console window


[Expand]
function ConsoleWindowGetMaxY(Handle:TWindowHandle):LongWord;
Description: Get the current maximum Y of the window viewport for an existing console window


[Expand]
function ConsoleWindowGetRect(Handle:TWindowHandle):TConsoleRect; inline;
Description: Get the rectangle X1,Y1,X2,Y2 of the window viewport for an existing console window


[Expand]
function ConsoleWindowSetRect(Handle:TWindowHandle; const ARect:TConsoleRect):LongWord; inline;
Description: Set the rectangle X1,Y1,X2,Y2 of the window viewport for an existing console window


[Expand]
function ConsoleWindowResetRect(Handle:TWindowHandle):LongWord; inline;
Description: Reset the window viewport for an existing console window to the maximum size


[Expand]
function ConsoleWindowGetViewport(Handle:TWindowHandle; var X1,Y1,X2,Y2:LongWord):LongWord;
Description: Get the X1,Y1,X2,Y2 of the window viewport for an existing console window


[Expand]
function ConsoleWindowSetViewport(Handle:TWindowHandle; X1,Y1,X2,Y2:LongWord):LongWord;
Description: Set the X1,Y1,X2,Y2 of the window viewport for an existing console window


[Expand]
function ConsoleWindowResetViewport(Handle:TWindowHandle):LongWord;
Description: Reset the window viewport for an existing console window to the maximum size


[Expand]
function ConsoleWindowGetX(Handle:TWindowHandle):LongWord;
Description: Get the current X (Column) position of an existing console window


[Expand]
function ConsoleWindowSetX(Handle:TWindowHandle; X:LongWord):LongWord;
Description: Set the current X (Column) position of an existing console window


[Expand]
function ConsoleWindowGetY(Handle:TWindowHandle):LongWord;
Description: Get the current Y (Row) position of an existing console window


[Expand]
function ConsoleWindowSetY(Handle:TWindowHandle; Y:LongWord):LongWord;
Description: Set the current Y (Row) position of an existing console window


[Expand]
function ConsoleWindowGetXY(Handle:TWindowHandle; var X,Y:LongWord):LongWord;
Description: Get the current X and Y positions of an existing console window


[Expand]
function ConsoleWindowSetXY(Handle:TWindowHandle; X,Y:LongWord):LongWord;
Description: Set the current X and Y positions of an existing console window


[Expand]
function ConsoleWindowGetPoint(Handle:TWindowHandle):TConsolePoint;
Description: Get the point X,Y of an existing console window


[Expand]
function ConsoleWindowSetPoint(Handle:TWindowHandle; const APoint:TConsolePoint):LongWord;
Description: Set the point X,Y of an existing console window


[Expand]
function ConsoleWindowGetCols(Handle:TWindowHandle):LongWord;
Description: Get the current columns of the window viewport for an existing console window


[Expand]
function ConsoleWindowGetRows(Handle:TWindowHandle):LongWord;
Description: Get the current rows of the window viewport for an existing console window


[Expand]
function ConsoleWindowGetWidth(Handle:TWindowHandle):LongWord;
Description: Get the absolute width of an existing console window


[Expand]
function ConsoleWindowGetHeight(Handle:TWindowHandle):LongWord;
Description: Get the absolute height of an existing console window


[Expand]
function ConsoleWindowGetFormat(Handle:TWindowHandle):LongWord;
Description: Get the color format of an existing console window


[Expand]
function ConsoleWindowGetForecolor(Handle:TWindowHandle):LongWord;
Description: Get the current foreground color of an existing console window


[Expand]
function ConsoleWindowSetForecolor(Handle:TWindowHandle; Color:LongWord):LongWord;
Description: Set the current foreground color of an existing console window


[Expand]
function ConsoleWindowGetBackcolor(Handle:TWindowHandle):LongWord;
Description: Get the current background color of an existing console window


[Expand]
function ConsoleWindowSetBackcolor(Handle:TWindowHandle; Color:LongWord):LongWord;
Description: Set the current background color of an existing console window


[Expand]
function ConsoleWindowGetFont(Handle:TWindowHandle):TFontHandle;
Description: Get the default font of an existing console window


[Expand]
function ConsoleWindowSetFont(Handle:TWindowHandle; Font:TFontHandle):LongWord;
Description: Set the default font of an existing console window


[Expand]
function ConsoleWindowGetCursorXY(Handle:TWindowHandle; var X,Y:LongWord):LongWord;
Description: Get the current cursor X and Y positions of an existing console window


[Expand]
function ConsoleWindowSetCursorXY(Handle:TWindowHandle; X,Y:LongWord):LongWord;
Description: Set the current cursor X and Y positions of an existing console window


[Expand]
function ConsoleWindowGetCursorMode(Handle:TWindowHandle):TCursorMode;
Description: Get the current cursor mode of an existing console window


[Expand]
function ConsoleWindowSetCursorMode(Handle:TWindowHandle;CursorMode:TCursorMode):LongWord;
Description: Set the current cursor mode of an existing console window


[Expand]
function ConsoleWindowGetCursorBlink(Handle:TWindowHandle):Boolean;
Description: Get the current cursor blink state of an existing console window


[Expand]
function ConsoleWindowSetCursorBlink(Handle:TWindowHandle; CursorBlink:Boolean):LongWord;
Description: Set the current cursor blink state of an existing console window


[Expand]
function ConsoleWindowGetCursorState(Handle:TWindowHandle):TCursorState;
Description: Get the current cursor state of an existing console window


[Expand]
function ConsoleWindowSetCursorState(Handle:TWindowHandle; CursorState:TCursorState):LongWord;
Description: Set the current cursor state of an existing console window


[Expand]
function ConsoleWindowGetCursorShape(Handle:TWindowHandle):TCursorShape;
Description: Get the current cursor shape of an existing console window


[Expand]
function ConsoleWindowSetCursorShape(Handle:TWindowHandle; CursorShape:TCursorShape):LongWord;
Description: Set the current cursor shape of an existing console window


[Expand]
function ConsoleWindowCursorOn(Handle:TWindowHandle):LongWord;
Description: Enable the cursor on an existing console window


[Expand]
function ConsoleWindowCursorOff(Handle:TWindowHandle):LongWord;
Description: Disable the cursor on an existing console window


[Expand]
function ConsoleWindowCursorLine(Handle:TWindowHandle):LongWord;
Description: Change the cursor to a vertical line on an existing console window


[Expand]
function ConsoleWindowCursorBar(Handle:TWindowHandle):LongWord;
Description: Change the cursor to a horizontal bar on an existing console window


[Expand]
function ConsoleWindowCursorBlock(Handle:TWindowHandle):LongWord;
Description: Change the cursor to a solid block on an existing console window


[Expand]
function ConsoleWindowCursorMove(Handle:TWindowHandle; X,Y:LongWord):LongWord;
Description: Move the cursor on an existing console window


[Expand]
function ConsoleWindowCursorBlink(Handle:TWindowHandle; Enabled:Boolean):LongWord;
Description: Set the blink state of the cursor on an existing console window


[Expand]
function ConsoleWindowAddHistory(Handle:TWindowHandle; const Value:String):LongWord;
Description: Add a value to the command history table of an existing console window


[Expand]
function ConsoleWindowClearHistory(Handle:TWindowHandle):LongWord;
Description: Remove all entries from the command history table of an existing console window}


[Expand]
function ConsoleWindowFirstHistory(Handle:TWindowHandle):String;
Description: Get the first (oldest) command history value from an existing console window


[Expand]
function ConsoleWindowLastHistory(Handle:TWindowHandle):String;
Description: Get the last (most recent) command history value from an existing console window


[Expand]
function ConsoleWindowNextHistory(Handle:TWindowHandle):String;
Description: Get the next (after current) command history value from an existing console window


[Expand]
function ConsoleWindowPreviousHistory(Handle:TWindowHandle):String;
Description: Get the next (before current) command history value from an existing console window


[Expand]
function ConsoleWindowCurrentHistory(Handle:TWindowHandle):String;
Description: Get the current command history value from an existing console window


[Expand]
function ConsoleWindowScrollUp(Handle:TWindowHandle; Row,Lines:LongWord):LongWord;
Description: Scroll the current viewport of an existing console window up


[Expand]
function ConsoleWindowScrollDown(Handle:TWindowHandle; Row,Lines:LongWord):LongWord;
Description: Scroll the current viewport of an existing console window down


[Expand]
function ConsoleWindowScrollLeft(Handle:TWindowHandle; Row,Col,Lines,Chars:LongWord):LongWord;
Description: Scroll the current viewport of an existing console window left


[Expand]
function ConsoleWindowScrollRight(Handle:TWindowHandle; Row,Col,Lines,Chars:LongWord):LongWord;
Description: Scroll the current viewport of an existing console window right


[Expand]
function ConsoleWindowClear(Handle:TWindowHandle):LongWord;
Description: Clear the current viewport of an existing console window


[Expand]
function ConsoleWindowClearEx(Handle:TWindowHandle; X1,Y1,X2,Y2:LongWord; Cursor:Boolean):LongWord;
Description: Clear part of the the current viewport of an existing console window


[Expand]
function ConsoleWindowWrite(Handle:TWindowHandle; const AText:String):LongWord;
Description: Write text on an existing console window at the current position in the current color


[Expand]
function ConsoleWindowWriteEx(Handle:TWindowHandle; const AText:String; X,Y,Forecolor,Backcolor:LongWord):LongWord;
Description: Write text on an existing console window


[Expand]
function ConsoleWindowWriteLn(Handle:TWindowHandle; const AText:String):LongWord;
Description: Write text on an existing console window at the current position in the current color


[Expand]
function ConsoleWindowWriteLnEx(Handle:TWindowHandle; const AText:String; X,Y,Forecolor,Backcolor:LongWord):LongWord;
Description: Write text on an existing console window


[Expand]
function ConsoleWindowWriteChr(Handle:TWindowHandle; AChr:Char):LongWord;
Description: Write a character on an existing console window at the current position in the current color


[Expand]
function ConsoleWindowWriteChrEx(Handle:TWindowHandle; AChr:Char; X,Y,Forecolor,Backcolor:LongWord):LongWord;
Description: Write a character on an existing console window


[Expand]
function ConsoleWindowOutput(Handle:TWindowHandle; const Source,Dest:TConsolePoint; Buffer:PConsoleChar; Width,Height,Skip:LongWord):LongWord;
Description: Output a rectangular area of text to a console window


[Expand]
function ConsoleWindowRead(Handle:TWindowHandle; var AText:String):LongWord;
Description: Read text input from the console and echo to an existing console window at the current position in the current color


[Expand]
function ConsoleWindowReadLn(Handle:TWindowHandle; var AText:String):LongWord;
Description: Read text input from the console and echo to an existing console window at the current position in the current color


[Expand]
function ConsoleWindowReadLnEx(Handle:TWindowHandle; var AText:String; const Prompt:String; X,Y,Forecolor,Backcolor:LongWord; Scroll,History:Boolean; Completion:TConsoleWindowCompletion; Data:Pointer):LongWord;
Description: Read text input from the console and echo to an existing console window at the specified position in the specified color


[Expand]
function ConsoleWindowReadChr(Handle:TWindowHandle; var AChr:Char):LongWord;
Description: Read one character input from the console and echo to an existing console window at the current position in the current color


[Expand]
function ConsoleWindowReadChrEx(Handle:TWindowHandle; var AChr:Char; const Prompt:String; X,Y,Forecolor,Backcolor:LongWord; Echo,Scroll:Boolean):LongWord;
Description: Read one character input from the console and optionally echo to an existing console window at the specified position in the specified color


CRT console functions

[Expand]
procedure ConsoleAssignCrt(var F:Text);
Description: Compatible with RTL Crt unit function AssignCrt


[Expand]
procedure ConsoleClrEol;
Description: Compatible with RTL Crt unit function ClrEol


[Expand]
procedure ConsoleClrScr;
Description: Compatible with RTL Crt unit function ClrScr


[Expand]
procedure ConsoleDelay(MS:Word);
Description: Compatible with RTL Crt unit function Delay


[Expand]
procedure ConsoleDelLine;
Description: Compatible with RTL Crt unit function DelLine


[Expand]
procedure ConsoleGotoXY(X,Y:Integer);
Description: Compatible with RTL Crt unit function GotoXY


[Expand]
procedure ConsoleHighVideo;
Description: Compatible with RTL Crt unit function HighVideo


[Expand]
procedure ConsoleInsLine;
Description: Compatible with RTL Crt unit function InsLine


[Expand]
function ConsoleKeypressed:Boolean;
Description: Compatible with RTL Crt unit function KeyPressed


[Expand]
procedure ConsoleLowVideo;
Description: Compatible with RTL Crt unit function LowVideo


[Expand]
procedure ConsoleNormVideo;
Description: Compatible with RTL Crt unit function NormVideo


[Expand]
procedure ConsoleNoSound;
Description: Compatible with RTL Crt unit function NoSound


[Expand]
function ConsoleReadKey:Char;
Description: Compatible with RTL Crt unit function ReadKey


[Expand]
procedure ConsoleSound(Hz:Word);
Description: Compatible with RTL Crt unit function Sound


[Expand]
procedure ConsoleTextBackground(Color:LongWord);
Description: Compatible with RTL Crt unit function TextBackground


[Expand]
procedure ConsoleTextColor(Color:LongWord);
Description: Compatible with RTL Crt unit function TextColor


[Expand]
procedure ConsoleTextMode(Mode:Integer);
Description: Compatible with RTL Crt unit function TextMode


[Expand]
function ConsoleWhereX:Integer;
Description: Compatible with RTL Crt unit function WhereX


[Expand]
function ConsoleWhereY:Integer;
Description: Compatible with RTL Crt unit function WhereY


[Expand]
procedure ConsoleWindow(X1,Y1,X2,Y2:Integer);
Description: Compatible with RTL Crt unit function Window


[Expand]
procedure ConsoleScrollUp(Row,Lines:Integer);
Description: Scroll the default console window up


[Expand]
procedure ConsoleScrollDown(Row,Lines:Integer);
Description: Scroll the default console window down


[Expand]
procedure ConsoleWrite(const AText:String);
Description: Write text on the default console window at the current position in the current color


[Expand]
procedure ConsoleWriteLn(const AText:String);
Description: Write text on the default console window at the current position in the current color


[Expand]
procedure ConsoleWriteChr(AChr:Char);
Description: Write a character on the default console window at the current position in the current color


[Expand]
procedure ConsoleRead(var AText:String);
Description: Read text from console input and echo to screen


[Expand]
procedure ConsoleReadLn(var AText:String);
Description: Read text from console input and echo to screen


[Expand]
procedure ConsoleReadChr(var AChr:Char);
Description: Read characters from console input and echo to screen


RTL text IO functions

[Expand]
function SysTextIOWriteChar(ACh:Char; AUserData:Pointer):Boolean;
Description: Handler for platform TextIOWriteChar function


RTL console functions

[Expand]
function SysConsoleWriteChar(ACh:Char; AUserData:Pointer):Boolean;
Description: Handler for platform ConsoleWriteChar function


Framebuffer console functions

[Expand]
function FramebufferConsoleOpen(Console:PConsoleDevice):LongWord;
Description: Implementation of ConsoleDeviceOpen API for FramebufferConsole


[Expand]
function FramebufferConsoleClose(Console:PConsoleDevice):LongWord;
Description: Implementation of ConsoleDeviceClose API for FramebufferConsole


[Expand]
function FramebufferConsoleClear(Console:PConsoleDevice; Color:LongWord):LongWord;
Description: Implementation of ConsoleDeviceClear API for FramebufferConsole


[Expand]
function FramebufferConsoleScroll(Console:PConsoleDevice; X1,Y1,X2,Y2,Count,Direction:LongWord):LongWord;
Description: Implementation of ConsoleDeviceScroll API for FramebufferConsole


[Expand]
function FramebufferConsoleDrawBox(Console:PConsoleDevice; X1,Y1,X2,Y2,Color,Width:LongWord):LongWord;
Description: Implementation of ConsoleDeviceDrawBox API for FramebufferConsole


[Expand]
function FramebufferConsoleDrawLine(Console:PConsoleDevice; X1,Y1,X2,Y2,Color,Width:LongWord):LongWord;
Description: Implementation of ConsoleDeviceDrawLine API for FramebufferConsole


[Expand]
function FramebufferConsoleDrawChar(Console:PConsoleDevice; Handle:TFontHandle;Ch:Char; X,Y,Forecolor,Backcolor:LongWord):LongWord;
Description: Implementation of ConsoleDeviceDrawChar API for FramebufferConsole


[Expand]
function FramebufferConsoleDrawText(Console:PConsoleDevice; Handle:TFontHandle; const Text:String; X,Y,Forecolor,Backcolor,Len:LongWord):LongWord;
Description: Implementation of ConsoleDeviceDrawText API for FramebufferConsole


[Expand]
function FramebufferConsoleDrawPixel(Console:PConsoleDevice; X,Y,Color:LongWord):LongWord;
Description: Implementation of ConsoleDeviceDrawPixel API for FramebufferConsole


[Expand]
function FramebufferConsoleDrawBlock(Console:PConsoleDevice; X1,Y1,X2,Y2,Color:LongWord):LongWord;
Description: Implementation of ConsoleDeviceDrawBlock API for FramebufferConsole


[Expand]
function FramebufferConsoleDrawImage(Console:PConsoleDevice; X,Y:LongWord; Buffer:Pointer; Width,Height,Format,Skip:LongWord):LongWord;
Description: Implementation of ConsoleDeviceDrawImage API for FramebufferConsole


[Expand]
function FramebufferConsoleDrawWindow(Console:PConsoleDevice; Handle:TWindowHandle; Flags:LongWord):LongWord;
Description: Implementation of ConsoleDeviceDrawWindow API for FramebufferConsole


[Expand]
function FramebufferConsoleDrawDesktop(Console:PConsoleDevice):LongWord;
Description: Internal function used by FramebufferConsole to draw the console desktop


[Expand]
function FramebufferConsoleGetPixel(Console:PConsoleDevice; X,Y:LongWord; var Color:LongWord):LongWord;
Description: Implementation of ConsoleDeviceGetPixel API for FramebufferConsole


[Expand]
function FramebufferConsoleGetImage(Console:PConsoleDevice; X,Y:LongWord; Buffer:Pointer; Width,Height,Format,Skip:LongWord):LongWord;
Description: Implementation of ConsoleDeviceGetImage API for FramebufferConsole


[Expand]
function FramebufferConsolePutText(Console:PConsoleDevice; Handle:TFontHandle; const Source,Dest:TConsolePoint; Buffer:PConsoleChar; Width,Height,Skip:LongWord):LongWord;
Description: Implementation of ConsoleDevicePutText API for FramebufferConsole


[Expand]
function FramebufferConsoleCopyImage(Console:PConsoleDevice; const Source,Dest:TConsolePoint; Width,Height:LongWord):LongWord;
Description: Implementation of ConsoleDeviceCopyImage API for FramebufferConsole


[Expand]
procedure FramebufferConsoleCaretTimer(Caret:PConsoleCaret);
Description: Internal function used by FramebufferConsole device


[Expand]
procedure FramebufferConsoleShowCaret(Console:PConsoleDevice; Caret:PConsoleCaret);
Description: Internal function used by FramebufferConsole device


[Expand]
procedure FramebufferConsoleHideCaret(Console:PConsoleDevice; Caret:PConsoleCaret);
Description: Internal function used by FramebufferConsole device


[Expand]
function FramebufferConsoleAddCaret(Console:PConsoleDevice; Width,Height,OffsetX,OffsetY:LongWord):THandle;
Description: Implementation of ConsoleDeviceAddCaret API for FramebufferConsole


[Expand]
function FramebufferConsoleDeleteCaret(Console:PConsoleDevice; Handle:THandle):LongWord;
Description: Implementation of ConsoleDeviceDeleteCaret API for FramebufferConsole


[Expand]
function FramebufferConsoleUpdateCaret(Console:PConsoleDevice; Handle:THandle; X,Y:LongWord; Visible,Blink:Boolean):LongWord;
Description: Implementation of ConsoleDeviceUpdateCaret API for FramebufferConsole


[Expand]
function FramebufferConsoleGetPosition(Console:PConsoleDevice; Position:LongWord; var X1,Y1,X2,Y2:LongWord):LongWord;
Description: Implementation of ConsoleDeviceGetPosition API for FramebufferConsole


Console helper functions

[Expand]
function ConsoleDeviceGetCount:LongWord; inline;
Description: Get the current console device count


[Expand]
function ConsoleDeviceGetDefault:PConsoleDevice; inline;
Description: Get the current default console device


[Expand]
function ConsoleDeviceSetDefault(Console:PConsoleDevice):LongWord;
Description: Set the current default console device


[Expand]
function ConsoleDeviceCheck(Console:PConsoleDevice):PConsoleDevice;
Description: Check if the supplied Console device is in the Console table


[Expand]
function ConsoleDeviceCaretCheck(Console:PConsoleDevice; Caret:PConsoleCaret):PConsoleCaret;
Description: Check if a console caret entry is valid


[Expand]
function ConsoleDeviceGetDefaultFont:TFontHandle;
Description: Get the default console font


[Expand]
function ConsoleFramebufferDeviceAdd(Framebuffer:PFramebufferDevice):LongWord;
Description: To be documented


[Expand]
function ConsoleFramebufferDeviceRemove(Framebuffer:PFramebufferDevice):LongWord;
Description: To be documented


[Expand]
function ConsoleFramebufferDeviceEnum(Framebuffer:PFramebufferDevice; Data:Pointer):LongWord;
Description: To be documented


[Expand]
function ConsoleFramebufferDeviceNotify(Device:PDevice; Data:Pointer; Notification:LongWord):LongWord;
Description: To be documented


Text console helper functions

[Expand]
function ConsoleWindowGetCount(Console:PConsoleDevice):LongWord; inline;
Description: Get the current console window count


[Expand]
function ConsoleWindowGetActive(Console:PConsoleDevice):TWindowHandle; inline;
Description: Get the current console active window


[Expand]
function ConsoleWindowGetDefault(Console:PConsoleDevice):TWindowHandle; inline;
Description: Get the current console default window


[Expand]
function ConsoleWindowSetDefault(Console:PConsoleDevice; Handle:TWindowHandle):LongWord;
Description: Set the current console default window


[Expand]
function ConsoleWindowCheck(Console:PConsoleDevice; Window:PConsoleWindow):PConsoleWindow;
Description: Check if a console window entry is valid


[Expand]
function ConsoleWindowGetDefaultFont:TFontHandle;
Description: Get the default console window font


[Expand]
function ConsoleWindowRedirectOutput(Handle:TWindowHandle):Boolean;
Description: Redirect standard output to the console window specified by Handle


Return to Unit Reference