26#ifndef _ULTIBO_CONSOLE_H
27#define _ULTIBO_CONSOLE_H
38#define CONSOLE_NAME_PREFIX "Console"
41#define CONSOLE_TYPE_NONE 0
42#define CONSOLE_TYPE_FRAMEBUFFER 1
43#define CONSOLE_TYPE_SERIAL 2
44#define CONSOLE_TYPE_REMOTE 3
45#define CONSOLE_TYPE_LCD 4
47#define CONSOLE_TYPE_MAX 4
50#define CONSOLE_STATE_CLOSED 0
51#define CONSOLE_STATE_OPEN 1
53#define CONSOLE_STATE_MAX 1
56#define CONSOLE_FLAG_NONE 0x00000000
57#define CONSOLE_FLAG_LINE_WRAP 0x00000001
58#define CONSOLE_FLAG_DMA_BOX 0x00000002
59#define CONSOLE_FLAG_DMA_LINE 0x00000004
60#define CONSOLE_FLAG_DMA_FILL 0x00000008
61#define CONSOLE_FLAG_DMA_CLEAR 0x00000010
62#define CONSOLE_FLAG_DMA_SCROLL 0x00000020
63#define CONSOLE_FLAG_SINGLE_WINDOW 0x00000040
64#define CONSOLE_FLAG_HARDWARE_CURSOR 0x00000080
65#define CONSOLE_FLAG_HARDWARE_CARET 0x00000100
66#define CONSOLE_FLAG_BLINK_CARET 0x00000200
67#define CONSOLE_FLAG_TEXT_MODE 0x00000400
68#define CONSOLE_FLAG_TEXT_BLINK 0x00000800
69#define CONSOLE_FLAG_COLOR 0x00001000
70#define CONSOLE_FLAG_FONT 0x00002000
71#define CONSOLE_FLAG_FULLSCREEN 0x00004000
72#define CONSOLE_FLAG_AUTO_SCROLL 0x00008000
73#define CONSOLE_FLAG_DMA_TEXT 0x00010000
74#define CONSOLE_FLAG_COLOR_REVERSE 0x00020000
75#define CONSOLE_FLAG_TEXT_CARET 0x00040000
76#define CONSOLE_FLAG_FOCUS_CARET 0x00080000
78#define CONSOLE_FLAG_DMA_MASK CONSOLE_FLAG_DMA_BOX | CONSOLE_FLAG_DMA_LINE | CONSOLE_FLAG_DMA_FILL | CONSOLE_FLAG_DMA_CLEAR | CONSOLE_FLAG_DMA_SCROLL | CONSOLE_FLAG_DMA_TEXT
81#define CONSOLE_FLAG_INTERNAL CONSOLE_FLAG_SINGLE_WINDOW | CONSOLE_FLAG_HARDWARE_CURSOR | CONSOLE_FLAG_HARDWARE_CARET | CONSOLE_FLAG_BLINK_CARET | CONSOLE_FLAG_TEXT_MODE | CONSOLE_FLAG_TEXT_BLINK | CONSOLE_FLAG_COLOR | CONSOLE_FLAG_FONT | CONSOLE_FLAG_FULLSCREEN | CONSOLE_FLAG_COLOR_REVERSE | CONSOLE_FLAG_TEXT_CARET
84#define CONSOLE_MODE_NONE 0
85#define CONSOLE_MODE_PIXEL 1
86#define CONSOLE_MODE_CHARACTER 2
89#define CARET_SIGNATURE 0x9A2D40E3
92#define WINDOW_SIGNATURE 0xDE3A5C04
95#define WINDOW_STATE_INVISIBLE 0
96#define WINDOW_STATE_VISIBLE 1
98#define WINDOW_STATE_MAX 1
101#define WINDOW_MODE_NONE 0
102#define WINDOW_MODE_TEXT 1
103#define WINDOW_MODE_GRAPHICS 2
105#define WINDOW_MODE_MAX 2
108#define WINDOW_FLAG_NONE 0x00000000
109#define WINDOW_FLAG_LINE_WRAP 0x00000001
110#define WINDOW_FLAG_BUFFERED 0x00000002
111#define WINDOW_FLAG_FULLSCREEN 0x00000004
112#define WINDOW_FLAG_AUTO_SCROLL 0x00000008
113#define WINDOW_FLAG_CHARACTER 0x00000010
114#define WINDOW_FLAG_AUTO_UPDATE 0x00000020
115#define WINDOW_FLAG_FOCUS_CURSOR 0x00000040
118#define WINDOW_FLAG_INTERNAL WINDOW_FLAG_FULLSCREEN | WINDOW_FLAG_CHARACTER
121#define WINDOW_DRAW_FLAG_NONE 0x00000000
122#define WINDOW_DRAW_FLAG_BODY 0x00000001
123#define WINDOW_DRAW_FLAG_TITLE 0x00000002
124#define WINDOW_DRAW_FLAG_BORDER 0x00000004
126#define WINDOW_DRAW_FLAG_ALL WINDOW_DRAW_FLAG_BODY | WINDOW_DRAW_FLAG_TITLE | WINDOW_DRAW_FLAG_BORDER
129#define WINDOW_HISTORY_MAX_COUNT 100
132#define FRAMEBUFFER_CONSOLE_DESCRIPTION "Framebuffer Console"
1675uint32_t
STDCALL console_window_read_ln_ex(
WINDOW_HANDLE handle,
char *text, uint32_t *len,
char *prompt, uint32_t x, uint32_t y, uint32_t forecolor, uint32_t backcolor,
BOOL scroll,
BOOL history,
console_window_completion_cb completion,
void *data);
uint32_t STDCALL console_window_cursor_move(WINDOW_HANDLE handle, uint32_t x, uint32_t y)
Move the cursor on an existing console window.
CONSOLE_RECT STDCALL console_window_get_rect(WINDOW_HANDLE handle)
Get the rectangle X1,Y1,X2,Y2 of the window viewport for an existing console window.
uint32_t STDCALL console_device_get_mode(CONSOLE_DEVICE *console)
Get the mode of a console device.
uint32_t STDCALL(* console_device_get_properties_proc)(CONSOLE_DEVICE *console, CONSOLE_PROPERTIES *properties)
Definition console.h:225
uint32_t STDCALL(* console_device_draw_circle_proc)(CONSOLE_DEVICE *console, uint32_t x, uint32_t y, uint32_t color, uint32_t width, uint32_t radius)
Definition console.h:205
WINDOW_HANDLE STDCALL console_window_previous(CONSOLE_DEVICE *console, BOOL visible)
Get the previous console window starting with the active window.
uint32_t STDCALL(* console_device_draw_image_proc)(CONSOLE_DEVICE *console, uint32_t x, uint32_t y, void *buffer, uint32_t width, uint32_t height, uint32_t format, uint32_t skip)
Definition console.h:206
uint32_t STDCALL console_window_cursor_color(WINDOW_HANDLE handle, uint32_t color)
Set the color of the cursor on an existing console window.
uint32_t STDCALL console_window_hide(WINDOW_HANDLE handle)
Make an existing console window invisible and hide it on screen.
FONT_HANDLE STDCALL console_device_get_default_font(void)
Get the default console font.
uint32_t STDCALL console_device_destroy(CONSOLE_DEVICE *console)
Destroy an existing Console entry.
uint32_t STDCALL(* console_device_draw_pixel_proc)(CONSOLE_DEVICE *console, uint32_t x, uint32_t y, uint32_t color)
Definition console.h:203
uint32_t STDCALL console_window_read_ln(WINDOW_HANDLE handle, char *text, uint32_t *len)
Read text input from the console and echo to an existing console window at the current position in th...
uint32_t STDCALL console_device_update_cursor(CONSOLE_DEVICE *console, BOOL enabled, int32_t x, int32_t y, BOOL relative)
Update the position and state for the mouse cursor of a console device (CONSOLE_MODE_CHARACTER only).
uint32_t STDCALL console_window_get_cursor_color(WINDOW_HANDLE handle)
Get the current cursor color of an existing console window.
uint32_t STDCALL console_type_to_string(uint32_t consoletype, char *value, uint32_t len)
Convert a Console type value to a string.
uint32_t STDCALL console_device_get_image(CONSOLE_DEVICE *console, uint32_t x, uint32_t y, void *buffer, uint32_t width, uint32_t height, uint32_t format, uint32_t skip)
Read an image from a console device.
uint32_t STDCALL(* console_notification_cb)(DEVICE *device, void *data, uint32_t notification)
Definition console.h:191
uint32_t STDCALL console_window_scroll_right(WINDOW_HANDLE handle, uint32_t row, uint32_t col, uint32_t lines, uint32_t chars)
Scroll the current viewport of an existing console window right.
WINDOW_HANDLE STDCALL console_window_at(CONSOLE_DEVICE *console, uint32_t x, uint32_t y, BOOL visible)
Find the console window that X and Y coordinates are within.
uint32_t STDCALL console_window_write_chr(WINDOW_HANDLE handle, char ch)
Write a character on an existing console window at the current position in the current color.
uint32_t STDCALL(* console_enumerate_cb)(CONSOLE_DEVICE *console, void *data)
Definition console.h:189
uint32_t STDCALL console_device_deregister(CONSOLE_DEVICE *console)
Deregister a Console from the Console table.
uint32_t STDCALL console_device_notification(CONSOLE_DEVICE *console, console_notification_cb callback, void *data, uint32_t notification, uint32_t flags)
Register a notification for console device changes.
uint32_t STDCALL console_window_add_history(WINDOW_HANDLE handle, const char *value)
Add a value to the command history table of an existing console window.
void STDCALL console_text_mode(int mode)
Compatible with RTL Crt unit function TextMode.
uint32_t STDCALL(* console_window_enumerate_cb)(CONSOLE_DEVICE *console, WINDOW_HANDLE handle, void *data)
Definition console.h:362
uint32_t STDCALL console_device_copy_image(CONSOLE_DEVICE *console, CONSOLE_POINT *source, CONSOLE_POINT *dest, uint32_t width, uint32_t height)
Copy an image within a console device.
uint32_t STDCALL console_window_activate(WINDOW_HANDLE handle)
Make an existing console window the active window.
uint32_t STDCALL console_device_draw_image(CONSOLE_DEVICE *console, uint32_t x, uint32_t y, void *buffer, uint32_t width, uint32_t height, uint32_t format, uint32_t skip)
Draw an image on a console device.
CONSOLE_POINT STDCALL console_window_get_point(WINDOW_HANDLE handle)
Get the point X,Y of an existing console window.
void STDCALL console_write(const char *text)
Write text on the default console window at the current position in the current color.
CONSOLE_DEVICE *STDCALL console_device_check(CONSOLE_DEVICE *console)
Check if the supplied Console device is in the Console table.
uint32_t STDCALL console_window_cursor_line(WINDOW_HANDLE handle)
Change the cursor to a vertical line on an existing console window.
uint32_t STDCALL console_window_write(WINDOW_HANDLE handle, const char *text)
Write text on an existing console window at the current position in the current color.
uint32_t STDCALL console_window_get_min_x(WINDOW_HANDLE handle)
Get the current minimum X of the window viewport for an existing console window.
uint32_t STDCALL console_window_set_xy(WINDOW_HANDLE handle, uint32_t x, uint32_t y)
Set the current X and Y positions of an existing console window.
uint32_t STDCALL console_window_get_cols(WINDOW_HANDLE handle)
Get the current columns of the window viewport for an existing console window.
uint32_t STDCALL console_device_plot_line(CONSOLE_DEVICE *console, uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2, uint32_t color, uint32_t width)
Draw a line in any direction on a console device.
uint32_t STDCALL console_window_set_x(WINDOW_HANDLE handle, uint32_t x)
Set the current X (Column) position of an existing console window.
void STDCALL console_sound(uint16_t hz)
Compatible with RTL Crt unit function Sound.
uint32_t STDCALL console_window_set_y(WINDOW_HANDLE handle, uint32_t y)
Set the current Y (Row) position of an existing console window.
uint32_t STDCALL(* console_device_copy_image_proc)(CONSOLE_DEVICE *console, CONSOLE_POINT *source, CONSOLE_POINT *dest, uint32_t width, uint32_t height)
Definition console.h:214
CURSOR_SHAPE STDCALL console_window_get_cursor_shape(WINDOW_HANDLE handle)
Get the current cursor shape of an existing console window.
void STDCALL console_clr_scr(void)
Compatible with RTL Crt unit function ClrScr.
int STDCALL uint32_t STDCALL console_device_get_count(void)
Get the current console device count.
BOOL STDCALL console_window_get_cursor_blink(WINDOW_HANDLE handle)
Get the current cursor blink state of an existing console window.
CONSOLE_DEVICE *STDCALL console_device_find(uint32_t consoleid)
Find a console device by ID in the console table.
void STDCALL console_write_ln(const char *text)
Write text on the default console window at the current position in the current color.
struct _CONSOLE_WINDOW CONSOLE_WINDOW
Definition console.h:228
uint32_t STDCALL console_window_cursor_blink(WINDOW_HANDLE handle, BOOL enabled)
Set the blink state of the cursor on an existing console window.
FONT_HANDLE STDCALL console_window_get_font(WINDOW_HANDLE handle)
Get the default font of an existing console window.
uint32_t STDCALL(* console_device_open_proc)(CONSOLE_DEVICE *console)
Definition console.h:194
uint32_t STDCALL console_window_scroll_up(WINDOW_HANDLE handle, uint32_t row, uint32_t lines)
Scroll the current viewport of an existing console window up.
void STDCALL console_ins_line(void)
Compatible with RTL Crt unit function InsLine.
uint32_t STDCALL(* console_device_clear_proc)(CONSOLE_DEVICE *console, uint32_t color)
Definition console.h:196
uint32_t STDCALL console_window_state_to_string(uint32_t windowstate, char *value, uint32_t len)
Convert a Console Window state value to a string.
uint32_t STDCALL console_window_write_ln(WINDOW_HANDLE handle, const char *text)
Write text on an existing console window at the current position in the current color.
uint32_t STDCALL console_window_output(WINDOW_HANDLE handle, CONSOLE_POINT *source, CONSOLE_POINT *dest, CONSOLE_CHAR *buffer, uint32_t width, uint32_t height, uint32_t skip)
Output a rectangular area of text to a console window.
int STDCALL console_where_x(void)
Compatible with RTL Crt unit function WhereX.
uint32_t STDCALL console_device_draw_window(CONSOLE_DEVICE *console, WINDOW_HANDLE handle, uint32_t flags)
Draw a console window on a console device.
uint32_t STDCALL console_window_write_chr_ex(WINDOW_HANDLE handle, char ch, uint32_t x, uint32_t y, uint32_t forecolor, uint32_t backcolor)
Write a character on an existing console window.
uint32_t STDCALL console_window_get_mode(WINDOW_HANDLE handle)
Get the window mode of an existing console window.
BOOL STDCALL console_window_get_cursor_reverse(WINDOW_HANDLE handle)
Get the current cursor reverse state of an existing console window.
uint32_t STDCALL console_device_draw_line(CONSOLE_DEVICE *console, uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2, uint32_t color, uint32_t width)
Draw a horizontal or vertical line on a console device.
CONSOLE_DEVICE *STDCALL console_device_find_by_name(const char *name)
Find a console device by name in the console table.
uint32_t STDCALL console_window_get_forecolor(WINDOW_HANDLE handle)
Get the current foreground color of an existing console window.
uint32_t STDCALL console_window_set_default(CONSOLE_DEVICE *console, WINDOW_HANDLE handle)
Set the current console default window.
uint32_t STDCALL console_device_update_flag(CONSOLE_DEVICE *console, uint32_t flag, BOOL clear)
Set or clear a flag on a console device.
uint32_t STDCALL console_window_get_properties(WINDOW_HANDLE handle, WINDOW_PROPERTIES *properties)
Get the properties for the specified console window.
uint32_t STDCALL console_position_to_string(uint32_t position, char *value, uint32_t len)
CONSOLE_DEVICE *STDCALL console_device_find_by_device(DEVICE *device)
Find a console device by its related device in the console table.
CONSOLE_WINDOW *STDCALL console_window_check(CONSOLE_DEVICE *console, CONSOLE_WINDOW *window)
Check if a console window entry is valid.
uint32_t STDCALL console_device_delete_caret(CONSOLE_DEVICE *console, HANDLE handle)
Delete an existing caret (cursor).
uint32_t STDCALL console_window_set_cursor_mode(WINDOW_HANDLE handle, CURSOR_MODE cursormode)
Set the current cursor mode of an existing console window.
uint32_t STDCALL console_device_enumerate(console_enumerate_cb callback, void *data)
Enumerate all console devices in the console table.
WINDOW_HANDLE STDCALL console_window_next(CONSOLE_DEVICE *console, BOOL visible)
Get the next console window starting with the active window.
uint32_t STDCALL console_window_reset_rect(WINDOW_HANDLE handle)
Reset the window viewport for an existing console window to the maximum size.
uint32_t STDCALL console_window_get_rows(WINDOW_HANDLE handle)
Get the current rows of the window viewport for an existing console window.
void STDCALL console_window(int x1, int y1, int x2, int y2)
Compatible with RTL Crt unit function Window.
uint32_t STDCALL(* console_device_close_proc)(CONSOLE_DEVICE *console)
Definition console.h:195
CONSOLE_DEVICE *STDCALL console_device_create(void)
Create a new Console entry.
uint32_t STDCALL console_window_get_min_y(WINDOW_HANDLE handle)
Get the current minimum Y of the window viewport for an existing console window.
uint32_t STDCALL console_device_put_text(CONSOLE_DEVICE *console, FONT_HANDLE handle, CONSOLE_POINT *source, CONSOLE_POINT *dest, CONSOLE_CHAR *buffer, uint32_t width, uint32_t height, uint32_t skip)
Output a rectangular area of text to a console device.
void STDCALL console_del_line(void)
Compatible with RTL Crt unit function DelLine.
void STDCALL console_scroll_down(int row, int lines)
Scroll the default console window down.
uint32_t STDCALL console_window_cursor_off(WINDOW_HANDLE handle)
Disable the cursor on an existing console window.
uint32_t STDCALL console_window_mode_to_string(uint32_t windowmode, char *value, uint32_t len)
Convert a Console Window mode value to a string.
uint32_t STDCALL console_window_set_position(WINDOW_HANDLE handle, uint32_t position)
Set the position of an existing console window.
uint32_t STDCALL console_device_get_pixel(CONSOLE_DEVICE *console, uint32_t x, uint32_t y, uint32_t *color)
Read a pixel from a console device.
uint32_t STDCALL console_window_read(WINDOW_HANDLE handle, char *text, uint32_t *len)
Read text input from the console and echo to an existing console window at the current position in th...
void STDCALL console_low_video(void)
Compatible with RTL Crt unit function LowVideo.
void STDCALL console_read_chr(char *ch)
Read a character from console input and echo to the screen.
uint32_t STDCALL console_window_reset_viewport(WINDOW_HANDLE handle)
Reset the window viewport for an existing console window to the maximum size.
uint32_t STDCALL console_window_set_backcolor(WINDOW_HANDLE handle, uint32_t color)
Set the current background color of an existing console window.
struct _CONSOLE_CARET CONSOLE_CARET
Definition console.h:227
struct _CONSOLE_HISTORY CONSOLE_HISTORY
Definition console.h:229
uint32_t STDCALL console_window_set_cursor_shape(WINDOW_HANDLE handle, CURSOR_SHAPE cursorshape)
Set the current cursor shape of an existing console window.
uint32_t STDCALL console_window_get_format(WINDOW_HANDLE handle)
Get the color format of an existing console window.
uint32_t STDCALL(* console_device_get_image_proc)(CONSOLE_DEVICE *console, uint32_t x, uint32_t y, void *buffer, uint32_t width, uint32_t height, uint32_t format, uint32_t skip)
Definition console.h:210
uint32_t STDCALL console_device_update_caret_ex(CONSOLE_DEVICE *console, HANDLE handle, uint32_t x, uint32_t y, uint32_t forecolor, uint32_t backcolor, BOOL visible, BOOL blink, BOOL reverse)
Update an existing carets position, colors, visibility, blink or reverse.
uint32_t STDCALL console_window_set_forecolor(WINDOW_HANDLE handle, uint32_t color)
Set the current foreground color of an existing console window.
uint32_t STDCALL console_device_draw_box(CONSOLE_DEVICE *console, uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2, uint32_t color, uint32_t width)
Draw an outline of a box on a console device.
void STDCALL console_norm_video(void)
Compatible with RTL Crt unit function NormVideo.
uint32_t STDCALL console_window_get_count(CONSOLE_DEVICE *console)
Get the current console window count.
BOOL STDCALL console_window_redirect_output(WINDOW_HANDLE handle)
Redirect standard output to the console window specified by Handle.
uint32_t STDCALL console_device_get_properties(CONSOLE_DEVICE *console, CONSOLE_PROPERTIES *properties)
Get the current properties from a console device.
CONSOLE_DEVICE *STDCALL console_device_get_default(void)
Get the current default console device.
uint32_t STDCALL console_window_set_cursor_color(WINDOW_HANDLE handle, uint32_t color)
Set the current cursor color of an existing console window.
uint32_t STDCALL console_device_draw_text(CONSOLE_DEVICE *console, FONT_HANDLE handle, const char *text, uint32_t x, uint32_t y, uint32_t forecolor, uint32_t backcolor, uint32_t len)
Draw a text string on a console device.
uint32_t STDCALL console_window_cursor_reverse(WINDOW_HANDLE handle, BOOL enabled)
Set the reverse state of the cursor on an existing console window.
void STDCALL console_no_sound(void)
Compatible with RTL Crt unit function NoSound.
void STDCALL console_scroll_up(int row, int lines)
Scroll the default console window up.
WINDOW_HANDLE STDCALL console_window_create_ex(CONSOLE_DEVICE *console, FONT_HANDLE font, uint32_t size, uint32_t state, uint32_t mode, uint32_t position, BOOL _default)
Create a new Console window.
uint32_t STDCALL console_device_close(CONSOLE_DEVICE *console)
Close a console device to prevent drawing.
uint32_t STDCALL console_device_scroll(CONSOLE_DEVICE *console, uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2, uint32_t count, uint32_t direction)
Scroll all or part of a console device in the specified direction.
BOOL STDCALL console_device_check_flag(CONSOLE_DEVICE *console, uint32_t flag)
Check if a console device supports a flag value.
int STDCALL console_window_printf(WINDOW_HANDLE handle, const char *format,...) _ATTRIBUTE((__format__(__printf__
Print formatted text to an existing console window at the current position in the current color.
struct _CONSOLE_CHAR CONSOLE_CHAR
Definition console.h:154
uint32_t STDCALL(* console_device_delete_caret_proc)(CONSOLE_DEVICE *console, HANDLE handle)
Definition console.h:217
uint32_t STDCALL console_device_set_default(CONSOLE_DEVICE *console)
Set the current default console device.
uint32_t STDCALL console_window_get_backcolor(WINDOW_HANDLE handle)
Get the current background color of an existing console window.
struct _WINDOW_PROPERTIES WINDOW_PROPERTIES
Definition console.h:339
uint32_t STDCALL console_window_destroy(WINDOW_HANDLE handle)
Close and Destroy an existing console window.
uint32_t STDCALL console_window_get_position(WINDOW_HANDLE handle)
Get the position of an existing console window.
CONSOLE_DEVICE *STDCALL console_device_find_by_description(const char *description)
Find a console device by description in the console table.
uint32_t STDCALL(* console_device_draw_box_proc)(CONSOLE_DEVICE *console, uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2, uint32_t color, uint32_t width)
Definition console.h:198
uint32_t STDCALL(* console_device_draw_line_proc)(CONSOLE_DEVICE *console, uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2, uint32_t color, uint32_t width)
Definition console.h:199
uint32_t STDCALL console_window_read_ln_ex(WINDOW_HANDLE handle, char *text, uint32_t *len, char *prompt, uint32_t x, uint32_t y, uint32_t forecolor, uint32_t backcolor, BOOL scroll, BOOL history, console_window_completion_cb completion, void *data)
Read text input from the console and echo to an existing console window at the specified position in ...
uint32_t STDCALL(* console_device_draw_window_proc)(CONSOLE_DEVICE *console, WINDOW_HANDLE handle, uint32_t flags)
Definition console.h:207
uint32_t STDCALL console_window_set_point(WINDOW_HANDLE handle, CONSOLE_POINT *point)
Set the point X,Y of an existing console window.
uint32_t STDCALL(* console_device_plot_line_proc)(CONSOLE_DEVICE *console, uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2, uint32_t color, uint32_t width)
Definition console.h:200
uint32_t STDCALL console_window_set_cursor_blink(WINDOW_HANDLE handle, BOOL cursorblink)
Set the current cursor blink state of an existing console window.
int STDCALL console_printf(const char *format,...) _ATTRIBUTE((__format__(__printf__
Print formatted text to the default console window at the current position in the current color.
uint32_t STDCALL console_window_get_max_x(WINDOW_HANDLE handle)
Get the current maximum X of the window viewport for an existing console window.
FONT_HANDLE STDCALL console_window_get_default_font(void)
Get the default console window font.
CURSOR_MODE
Definition console.h:136
@ CURSOR_MODE_INSERT
Definition console.h:137
@ CURSOR_MODE_OVERWRITE
Definition console.h:138
WINDOW_HANDLE STDCALL console_window_create(CONSOLE_DEVICE *console, uint32_t position, BOOL _default)
Create a new Console window.
uint32_t STDCALL console_window_set_cursor_state(WINDOW_HANDLE handle, CURSOR_STATE cursorstate)
Set the current cursor state of an existing console window.
uint32_t STDCALL console_device_get_state(CONSOLE_DEVICE *console)
Get the state of a console device.
uint32_t STDCALL console_window_current_history(WINDOW_HANDLE handle, char *value, uint32_t len)
Get the current command history value from an existing console window.
CONSOLE_CARET *STDCALL console_device_caret_check(CONSOLE_DEVICE *console, CONSOLE_CARET *caret)
Check if a console caret entry is valid.
uint32_t STDCALL console_window_get_width(WINDOW_HANDLE handle)
Get the absolute width of an existing console window.
uint32_t STDCALL console_device_set_cursor(CONSOLE_DEVICE *console, uint32_t width, uint32_t height, char *chars)
Set the mouse cursor properties of a console device (CONSOLE_MODE_CHARACTER only).
uint32_t STDCALL console_window_previous_history(WINDOW_HANDLE handle, char *value, uint32_t len)
Get the next (before current) command history value from an existing console window.
struct _CONSOLE_DEVICE CONSOLE_DEVICE
Definition console.h:186
uint32_t STDCALL console_window_read_chr(WINDOW_HANDLE handle, char *ch)
Read one character input from the console and echo to an existing console window at the current posit...
uint32_t STDCALL console_window_deactivate(WINDOW_HANDLE handle)
Make an existing console window inactive.
uint32_t STDCALL console_window_set_cursor_reverse(WINDOW_HANDLE handle, BOOL cursorreverse)
Set the current cursor reverse state of an existing console window.
uint32_t STDCALL console_device_update_caret(CONSOLE_DEVICE *console, HANDLE handle, uint32_t x, uint32_t y, BOOL visible, BOOL blink)
Update an existing carets position, visibility or blink.
uint32_t STDCALL console_window_read_chr_ex(WINDOW_HANDLE handle, char *ch, char *prompt, uint32_t x, uint32_t y, uint32_t forecolor, uint32_t backcolor, BOOL echo, BOOL scroll)
Read one character input from the console and optionally echo to an existing console window at the sp...
void STDCALL console_text_background(uint32_t color)
Compatible with RTL Crt unit function TextBackground.
WINDOW_HANDLE STDCALL console_window_get_active(CONSOLE_DEVICE *console)
Get the current console active window.
CURSOR_STATE STDCALL console_window_get_cursor_state(WINDOW_HANDLE handle)
Get the current cursor state of an existing console window.
HANDLE STDCALL(* console_device_add_caret_proc)(CONSOLE_DEVICE *console, uint32_t width, uint32_t height, uint32_t offsetx, uint32_t offsety)
Definition console.h:216
uint32_t STDCALL console_device_get_position(CONSOLE_DEVICE *console, uint32_t position, uint32_t *x1, uint32_t *y1, uint32_t *x2, uint32_t *y2)
Get the coordinates of a console position from a console device.
uint32_t STDCALL console_device_draw_circle(CONSOLE_DEVICE *console, uint32_t x, uint32_t y, uint32_t color, uint32_t width, uint32_t radius)
Draw a circle on a console device.
uint32_t STDCALL(* console_device_set_cursor_proc)(CONSOLE_DEVICE *console, uint32_t width, uint32_t height, char *chars)
Definition console.h:221
BOOL STDCALL console_window_check_flag(WINDOW_HANDLE handle, uint32_t flag)
Check an existing console window to determine if a flag is set or not.
uint32_t STDCALL console_window_scroll_down(WINDOW_HANDLE handle, uint32_t row, uint32_t lines)
Scroll the current viewport of an existing console window down.
void STDCALL console_delay(uint16_t ms)
Compatible with RTL Crt unit function Delay.
uint32_t STDCALL console_window_clear_ex(WINDOW_HANDLE handle, uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2, BOOL cursor)
Clear part of the the current viewport of an existing console window.
CONSOLE_DEVICE *STDCALL console_device_create_ex(uint32_t size)
Create a new Console entry.
uint32_t STDCALL(* console_device_update_caret_proc)(CONSOLE_DEVICE *console, HANDLE handle, uint32_t x, uint32_t y, BOOL visible, BOOL blink)
Definition console.h:218
CURSOR_MODE STDCALL console_window_get_cursor_mode(WINDOW_HANDLE handle)
Get the current cursor mode of an existing console window.
uint32_t STDCALL console_window_set_font(WINDOW_HANDLE handle, FONT_HANDLE font)
Set the default font of an existing console window.
uint32_t STDCALL console_window_next_history(WINDOW_HANDLE handle, char *value, uint32_t len)
Get the next (after current) command history value from an existing console window.
int STDCALL console_where_y(void)
Compatible with RTL Crt unit function WhereY.
uint32_t STDCALL console_window_get_state(WINDOW_HANDLE handle)
Get the window state of an existing console window.
uint32_t STDCALL console_window_get_max_y(WINDOW_HANDLE handle)
Get the current maximum Y of the window viewport for an existing console window.
CURSOR_SHAPE
Definition console.h:148
@ CURSOR_SHAPE_LINE
Line is a vertical line and (All shapes inverse any character data under them).
Definition console.h:149
@ CURSOR_SHAPE_BLOCK
Block is a solid block (All shapes inverse any character data under them).
Definition console.h:151
@ CURSOR_SHAPE_BAR
Bar is a horizontal bar (All shapes inverse any character data under them).
Definition console.h:150
uint32_t STDCALL console_device_clear(CONSOLE_DEVICE *console, uint32_t color)
Clear a console device using the specified color.
int STDCALL void STDCALL console_clr_eol(void)
Compatible with RTL Crt unit function ClrEol.
WINDOW_HANDLE STDCALL console_window_get_default(CONSOLE_DEVICE *console)
Get the current console default window.
uint32_t STDCALL(* console_device_put_text_proc)(CONSOLE_DEVICE *console, FONT_HANDLE handle, CONSOLE_POINT *source, CONSOLE_POINT *dest, CONSOLE_CHAR *buffer, uint32_t width, uint32_t height, uint32_t skip)
Definition console.h:212
HANDLE STDCALL console_device_add_caret(CONSOLE_DEVICE *console, uint32_t width, uint32_t height, uint32_t offsetx, uint32_t offsety)
Create a new caret (cursor) of the specified size.
uint32_t STDCALL console_device_register(CONSOLE_DEVICE *console)
Register a new Console in the Console table.
uint32_t STDCALL console_window_get_height(WINDOW_HANDLE handle)
Get the absolute height of an existing console window.
uint32_t STDCALL console_window_get_viewport(WINDOW_HANDLE handle, uint32_t *x1, uint32_t *y1, uint32_t *x2, uint32_t *y2)
Get the X1,Y1,X2,Y2 of the window viewport for an existing console window.
uint32_t STDCALL console_window_scroll_left(WINDOW_HANDLE handle, uint32_t row, uint32_t col, uint32_t lines, uint32_t chars)
Scroll the current viewport of an existing console window left.
uint32_t STDCALL(* console_window_completion_cb)(WINDOW_HANDLE handle, char *buffer, void *data)
Definition console.h:365
uint32_t STDCALL console_window_set_cursor_xy(WINDOW_HANDLE handle, uint32_t x, uint32_t y)
Set the current cursor X and Y positions of an existing console window.
uint32_t STDCALL console_window_show(WINDOW_HANDLE handle)
Make an existing console window visible and show it on screen.
uint32_t STDCALL console_device_draw_char(CONSOLE_DEVICE *console, FONT_HANDLE handle, char ch, uint32_t x, uint32_t y, uint32_t forecolor, uint32_t backcolor)
Draw a character on a console device.
uint32_t STDCALL console_window_last_history(WINDOW_HANDLE handle, char *value, uint32_t len)
Get the last (most recent) command history value from an existing console window.
uint32_t STDCALL console_window_get_cursor_xy(WINDOW_HANDLE handle, uint32_t *x, uint32_t *y)
Get the current cursor X and Y positions of an existing console window.
void STDCALL console_high_video(void)
Compatible with RTL Crt unit function HighVideo.
char STDCALL console_read_key(void)
Compatible with RTL Crt unit function ReadKey.
void STDCALL console_write_chr(char ch)
Write a character on the default console window at the current position in the current color.
void STDCALL console_text_color(uint32_t color)
Compatible with RTL Crt unit function TextColor.
uint32_t STDCALL console_window_get_xy(WINDOW_HANDLE handle, uint32_t *x, uint32_t *y)
Get the current X and Y positions of an existing console window.
uint32_t STDCALL console_window_write_ln_ex(WINDOW_HANDLE handle, const char *text, uint32_t x, uint32_t y, uint32_t forecolor, uint32_t backcolor)
Write text on an existing console window.
BOOL STDCALL console_keypressed(void)
Compatible with RTL Crt unit function KeyPressed.
uint32_t STDCALL console_window_clear(WINDOW_HANDLE handle)
Clear the current viewport of an existing console window.
uint32_t STDCALL console_device_draw_block(CONSOLE_DEVICE *console, uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2, uint32_t color)
Draw a filled block on a console device.
uint32_t STDCALL console_window_write_ex(WINDOW_HANDLE handle, const char *text, uint32_t x, uint32_t y, uint32_t forecolor, uint32_t backcolor)
Write text on an existing console window.
uint32_t STDCALL console_window_get_x(WINDOW_HANDLE handle)
Get the current X (Column) position of an existing console window.
struct _CONSOLE_PROPERTIES CONSOLE_PROPERTIES
Definition console.h:176
void STDCALL console_read(char *text, uint32_t *len)
Read text from console input and echo to the screen.
uint32_t STDCALL console_window_set_viewport(WINDOW_HANDLE handle, uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2)
Set the X1,Y1,X2,Y2 of the window viewport for an existing console window.
uint32_t STDCALL(* console_device_scroll_proc)(CONSOLE_DEVICE *console, uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2, uint32_t count, uint32_t direction)
Definition console.h:197
uint32_t STDCALL console_window_enumerate(CONSOLE_DEVICE *console, console_window_enumerate_cb callback, void *data)
Enumerate existing console windows on the specified console device.
uint32_t STDCALL(* console_device_draw_text_proc)(CONSOLE_DEVICE *console, FONT_HANDLE handle, const char *text, uint32_t x, uint32_t y, uint32_t forecolor, uint32_t backcolor, uint32_t len)
Definition console.h:202
uint32_t STDCALL console_device_draw_pixel(CONSOLE_DEVICE *console, uint32_t x, uint32_t y, uint32_t color)
Draw a pixel on a console device.
uint32_t STDCALL console_window_set_rect(WINDOW_HANDLE handle, CONSOLE_RECT *rect)
Set the rectangle X1,Y1,X2,Y2 of the window viewport for an existing console window.
uint32_t STDCALL console_state_to_string(uint32_t consolestate, char *value, uint32_t len)
Convert a Console state value to a string.
CURSOR_STATE
Definition console.h:142
@ CURSOR_STATE_OFF
Definition console.h:144
@ CURSOR_STATE_ON
Definition console.h:143
uint32_t STDCALL(* console_device_get_pixel_proc)(CONSOLE_DEVICE *console, uint32_t x, uint32_t y, uint32_t *color)
Definition console.h:209
uint32_t STDCALL console_device_open(CONSOLE_DEVICE *console)
Open a console device ready for drawing.
uint32_t STDCALL console_window_update_flag(WINDOW_HANDLE handle, uint32_t flag, BOOL clear)
Set or clear a flag on an existing console window.
uint32_t STDCALL console_window_cursor_block(WINDOW_HANDLE handle)
Change the cursor to a solid block on an existing console window.
uint32_t STDCALL console_window_get_y(WINDOW_HANDLE handle)
Get the current Y (Row) position of an existing console window.
uint32_t STDCALL(* console_device_draw_char_proc)(CONSOLE_DEVICE *console, FONT_HANDLE handle, char ch, uint32_t x, uint32_t y, uint32_t forecolor, uint32_t backcolor)
Definition console.h:201
uint32_t STDCALL console_window_cursor_bar(WINDOW_HANDLE handle)
Change the cursor to a horizontal bar on an existing console window.
uint32_t STDCALL(* console_device_draw_block_proc)(CONSOLE_DEVICE *console, uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2, uint32_t color)
Definition console.h:204
WINDOW_HANDLE STDCALL console_window_find(CONSOLE_DEVICE *console, uint32_t position)
Find an existing console window in the position specified.
void STDCALL console_goto_xy(int x, int y)
Compatible with RTL Crt unit function GotoXY.
uint32_t STDCALL(* console_device_update_caret_ex_proc)(CONSOLE_DEVICE *console, HANDLE handle, uint32_t x, uint32_t y, uint32_t forecolor, uint32_t backcolor, BOOL visible, BOOL blink, BOOL reverse)
Definition console.h:219
uint32_t STDCALL console_window_first_history(WINDOW_HANDLE handle, char *value, uint32_t len)
Get the first (oldest) command history value from an existing console window.
uint32_t STDCALL(* console_device_get_position_proc)(CONSOLE_DEVICE *console, uint32_t position, uint32_t *x1, uint32_t *y1, uint32_t *x2, uint32_t *y2)
Definition console.h:224
uint32_t STDCALL(* console_device_update_cursor_proc)(CONSOLE_DEVICE *console, BOOL enabled, int32_t x, int32_t y, BOOL relative)
Definition console.h:222
void STDCALL console_read_ln(char *text, uint32_t *len)
Read text from console input and echo to the screen.
uint32_t STDCALL console_window_cursor_on(WINDOW_HANDLE handle)
Enable the cursor on an existing console window.
uint32_t STDCALL console_window_clear_history(WINDOW_HANDLE handle)
Remove all entries from the command history table of an existing console window.
struct _DEVICE DEVICE
Definition devices.h:373
HANDLE WINDOW_HANDLE
Definition globaltypes.h:121
HANDLE CRITICAL_SECTION_HANDLE
Definition globaltypes.h:106
int32_t LONGBOOL
Compatibility with FPC LongBool type (4 bytes).
Definition globaltypes.h:56
size_t HANDLE
Definition globaltypes.h:51
#define STDCALL
Definition globaltypes.h:45
_Bool BOOL
Built in Boolean type (1 byte) (Redeclared here for flexibility).
Definition globaltypes.h:55
HANDLE FONT_HANDLE
Definition globaltypes.h:122
HANDLE MUTEX_HANDLE
Definition globaltypes.h:105
uint32_t y
Definition console.h:165
uint32_t x
Definition console.h:164
uint32_t x1
Definition console.h:170
uint32_t x2
Definition console.h:172
uint32_t y1
Definition console.h:171
uint32_t y2
Definition console.h:173
HANDLE handle
Device specific handle.
Definition console.h:329
CONSOLE_CARET * next
Next entry in Console Caret table.
Definition console.h:336
LONGBOOL visible
Caret Visible On/Off.
Definition console.h:322
uint32_t offsety
Caret Offset Y (Pixels for CONSOLE_MODE_PIXEL / Always 0 for CONSOLE_MODE_CHARACTER).
Definition console.h:321
uint32_t width
Caret Width (Pixels for CONSOLE_MODE_PIXEL / Always 1 for CONSOLE_MODE_CHARACTER).
Definition console.h:318
void * buffer
Device specific buffer for area underneath caret.
Definition console.h:332
CONSOLE_DEVICE * console
Console device.
Definition console.h:327
uint32_t backcolor
Caret Background Color.
Definition console.h:326
void * image
Device specific buffer for caret image.
Definition console.h:331
uint32_t offsetx
Caret Offset X (Pixels for CONSOLE_MODE_PIXEL / Always 0 for CONSOLE_MODE_CHARACTER).
Definition console.h:320
LONGBOOL active
Caret currently active (displayed) (Independent of Visible to account for Blink).
Definition console.h:330
LONGBOOL blink
Caret Blink On/Off.
Definition console.h:323
uint32_t height
Caret Height (Pixels for CONSOLE_MODE_PIXEL / Always 1 for CONSOLE_MODE_CHARACTER).
Definition console.h:319
CONSOLE_CARET * prev
Previous entry in Console Caret table.
Definition console.h:335
uint32_t y
Caret Y (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER).
Definition console.h:317
uint32_t x
Caret X (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER).
Definition console.h:316
void * output
Device specific buffer for curently displayed caret.
Definition console.h:333
LONGBOOL reverse
Caret Color Reverse or Inverse.
Definition console.h:324
uint32_t signature
Signature for entry validation.
Definition console.h:315
uint32_t forecolor
Caret Foreground Color.
Definition console.h:325
uint32_t backcolor
Definition console.h:159
uint32_t forecolor
Definition console.h:158
char ch
Definition console.h:157
CONSOLE_DEVICE * next
Next entry in Console device table.
Definition console.h:308
uint32_t cursory
Cursor Y (Characters)(CONSOLE_MODE_CHARACTER only).
Definition console.h:290
CONSOLE_CARET * caretfirst
Definition console.h:297
MUTEX_HANDLE lock
Device lock.
Definition console.h:276
uint32_t windowcount
Definition console.h:303
uint32_t fontratio
Font Characters to Pixels Ratio (Normally 1 for Pixel Console / 0 for Character Console).
Definition console.h:286
console_device_draw_image_proc devicedrawimage
A device specific DeviceDrawImage method implementing a standard console device interface (Mandatory ...
Definition console.h:252
LONGBOOL cursorvisible
Cursor Visible On/Off (CONSOLE_MODE_CHARACTER only).
Definition console.h:293
console_device_get_position_proc devicegetposition
A device specific DeviceGetPosition method implementing a standard console device interface (Mandator...
Definition console.h:264
uint32_t consolemode
Console device mode (eg CONSOLE_MODE_PIXEL).
Definition console.h:239
console_device_scroll_proc devicescroll
A device specific DeviceScroll method implementing a standard console device interface (Mandatory).
Definition console.h:243
uint32_t width
Console Width (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER).
Definition console.h:277
console_device_plot_line_proc deviceplotline
A device specific DevicePlotLine method implementing a standard console device interface (Or nil if t...
Definition console.h:246
console_device_close_proc deviceclose
A device specific DeviceClose method implementing a standard console device interface (Mandatory).
Definition console.h:241
console_device_draw_box_proc devicedrawbox
A device specific DeviceDrawBox method implementing a standard console device interface (Mandatory fo...
Definition console.h:244
console_device_delete_caret_proc devicedeletecaret
A device specific DeviceDeleteCaret method implementing a standard console device interface (Optional...
Definition console.h:259
console_device_update_caret_ex_proc deviceupdatecaretex
A device specific DeviceUpdateCaretEx method implementing a standard console device interface (Option...
Definition console.h:261
uint32_t backcolor
Background Color.
Definition console.h:281
uint32_t consoleid
Unique Id of this Console device in the Console device table.
Definition console.h:237
DEVICE device
The Device entry for this Console device.
Definition console.h:235
uint32_t opencount
Definition console.h:267
char * cursorchars
Buffer for cursor characters (CONSOLE_MODE_CHARACTER only).
Definition console.h:294
uint32_t cursorwidth
Cursor Width (Characters)(CONSOLE_MODE_CHARACTER only).
Definition console.h:291
uint32_t putcount
Definition console.h:273
console_device_draw_char_proc devicedrawchar
A device specific DeviceDrawChar method implementing a standard console device interface (Mandatory).
Definition console.h:247
uint32_t format
Color Format (eg COLOR_FORMAT_ARGB32)(Only applicable if CONSOLE_MODE_PIXEL).
Definition console.h:279
console_device_get_image_proc devicegetimage
A device specific DeviceGetImage method implementing a standard console device interface (Mandatory f...
Definition console.h:255
uint32_t clearcount
Definition console.h:269
uint32_t height
Console Height (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER).
Definition console.h:278
uint32_t closecount
Definition console.h:268
uint32_t getcount
Definition console.h:272
uint32_t bordercolor
Border Color.
Definition console.h:283
console_device_draw_window_proc devicedrawwindow
A device specific DeviceDrawWindow method implementing a standard console device interface (Mandatory...
Definition console.h:253
console_device_draw_block_proc devicedrawblock
A device specific DeviceDrawBlock method implementing a standard console device interface (Mandatory)...
Definition console.h:250
console_device_add_caret_proc deviceaddcaret
A device specific DeviceAddCaret method implementing a standard console device interface (Optional).
Definition console.h:258
console_device_open_proc deviceopen
A device specific DeviceOpen method implementing a standard console device interface (Mandatory).
Definition console.h:240
console_device_draw_text_proc devicedrawtext
A device specific DeviceDrawText method implementing a standard console device interface (Mandatory).
Definition console.h:248
console_device_put_text_proc deviceputtext
A device specific DevicePutText method implementing a standard console device interface (Mandatory).
Definition console.h:256
CONSOLE_WINDOW * windowactive
The active console Window (ie the Window that is shown as selected).
Definition console.h:304
console_device_update_caret_proc deviceupdatecaret
A device specific DeviceUpdateCaret method implementing a standard console device interface (Optional...
Definition console.h:260
CONSOLE_WINDOW * windowfirst
Definition console.h:301
FONT_HANDLE font
Console Font.
Definition console.h:285
console_device_draw_line_proc devicedrawline
A device specific DeviceDrawLine method implementing a standard console device interface (Mandatory f...
Definition console.h:245
console_device_get_pixel_proc devicegetpixel
A device specific DeviceGetPixel method implementing a standard console device interface (Mandatory f...
Definition console.h:254
uint32_t borderwidth
Border Width (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER).
Definition console.h:282
console_device_update_cursor_proc deviceupdatecursor
A device specific DeviceUpdateCursor method implementing a standard console device interface (Or nil ...
Definition console.h:263
uint32_t consolestate
Console device state (eg CONSOLE_STATE_OPEN).
Definition console.h:238
LONGBOOL cursorupdate
Flag to indicate if cursor update (Show/Hide) is in progress (CONSOLE_MODE_CHARACTER only).
Definition console.h:288
console_device_get_properties_proc devicegetproperties
A device specific DeviceGetProperties method implementing a standard console device interface (Or nil...
Definition console.h:265
uint32_t cursorx
Cursor X (Characters)(CONSOLE_MODE_CHARACTER only).
Definition console.h:289
console_device_copy_image_proc devicecopyimage
A device specific DeviceCopyImage method implementing a standard console device interface (Mandatory ...
Definition console.h:257
uint32_t caretcount
Definition console.h:299
console_device_set_cursor_proc devicesetcursor
A device specific DeviceSetCursor method implementing a standard console device interface (Or nil if ...
Definition console.h:262
console_device_draw_pixel_proc devicedrawpixel
A device specific DeviceDrawPixel method implementing a standard console device interface (Mandatory ...
Definition console.h:249
CRITICAL_SECTION_HANDLE windowlock
Definition console.h:302
uint32_t copycount
Definition console.h:274
char * cursorbuffer
Buffer for characters currently under cursor (CONSOLE_MODE_CHARACTER only).
Definition console.h:295
CRITICAL_SECTION_HANDLE caretlock
Definition console.h:298
uint32_t cursorheight
Cursor Height (Characters)(CONSOLE_MODE_CHARACTER only).
Definition console.h:292
CONSOLE_DEVICE * prev
Previous entry in Console device table.
Definition console.h:307
console_device_draw_circle_proc devicedrawcircle
A device specific DeviceDrawCircle method implementing a standard console device interface (Or nil if...
Definition console.h:251
uint32_t forecolor
Foreground Color.
Definition console.h:280
uint32_t drawcount
Definition console.h:271
WINDOW_HANDLE windowdefault
The default console Window (ie the Window that receives standard output)(WINDOW_MODE_TEXT only).
Definition console.h:305
uint32_t scrollcount
Definition console.h:270
console_device_clear_proc deviceclear
A device specific DeviceClear method implementing a standard console device interface (Mandatory).
Definition console.h:242
CONSOLE_HISTORY * prev
Previous entry in History table.
Definition console.h:434
char * value
Definition console.h:431
int length
Definition console.h:432
CONSOLE_HISTORY * next
Next entry in History table.
Definition console.h:435
uint32_t width
Console Width (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER).
Definition console.h:181
uint32_t format
Color Format (eg COLOR_FORMAT_ARGB32)(Only applicable if CONSOLE_MODE_PIXEL).
Definition console.h:183
uint32_t height
Console Height (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER).
Definition console.h:182
uint32_t mode
Console device mode (eg CONSOLE_MODE_PIXEL).
Definition console.h:180
uint32_t flags
Console device flags (eg CONSOLE_FLAG_FULLSCREEN).
Definition console.h:179
LONGBOOL cursorreverse
Cursor Color Reverse or Inverse (WINDOW_MODE_TEXT only).
Definition console.h:408
uint32_t cursory
Cursor Y.
Definition console.h:403
uint32_t rows
Viewport Rows (Characters for WINDOW_MODE_TEXT / Pixels for WINDOW_MODE_GRAPHICS).
Definition console.h:391
MUTEX_HANDLE lock
Window lock.
Definition console.h:421
uint32_t windowmode
Console Window Mode (eg WINDOW_MODE_TEXT).
Definition console.h:374
uint32_t cursorforecolor
Cursor Foreground Color (WINDOW_MODE_TEXT only).
Definition console.h:409
CURSOR_STATE cursorstate
Cursor State On/Off.
Definition console.h:406
uint32_t offsety
Window Y Offset (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER).
Definition console.h:383
CONSOLE_HISTORY * historycurrent
Definition console.h:418
uint32_t width
Window Width in Columns (Characters for WINDOW_MODE_TEXT / Pixels for WINDOW_MODE_GRAPHICS).
Definition console.h:380
CONSOLE_DEVICE * console
Window console.
Definition console.h:422
LONGBOOL cursorblink
Cursor Blink On/Off.
Definition console.h:405
CONSOLE_WINDOW * prev
Previous entry in Console Window table.
Definition console.h:424
uint32_t backcolor
Current Background Color.
Definition console.h:394
CONSOLE_WINDOW * next
Next entry in Console Window table.
Definition console.h:425
uint32_t carety
Caret Y.
Definition console.h:413
uint32_t caretx
Caret X.
Definition console.h:412
uint32_t offsetx
Window X Offset (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER).
Definition console.h:382
uint32_t cols
Viewport Columns (Characters for WINDOW_MODE_TEXT / Pixels for WINDOW_MODE_GRAPHICS).
Definition console.h:390
CURSOR_SHAPE cursorshape
Cursor Shape Line/Bar/Block.
Definition console.h:407
HANDLE carethandle
Caret (Cursor) Handle (or INVALID_HANDLE_VALUE).
Definition console.h:414
uint32_t format
Color Format (eg COLOR_FORMAT_ARGB32)(Only applicable if CONSOLE_MODE_PIXEL).
Definition console.h:392
uint32_t x1
Window X1.
Definition console.h:376
uint32_t height
Window Height in Rows (Characters for WINDOW_MODE_TEXT / Pixels for WINDOW_MODE_GRAPHICS).
Definition console.h:381
uint32_t bordercolor
Current Border Color.
Definition console.h:396
uint32_t maxx
Viewport X2.
Definition console.h:386
CURSOR_MODE cursormode
Cursor Mode Insert/Overwrite.
Definition console.h:404
uint32_t windowflags
Console Window Flags (eg WINDOW_FLAG_LINE_WRAP).
Definition console.h:375
uint32_t windowstate
Console Window State (eg WINDOW_STATE_VISIBLE).
Definition console.h:373
uint32_t minx
Viewport X1.
Definition console.h:384
uint32_t fontheight
Font Height (Pixels for CONSOLE_MODE_PIXEL / Always 1 for CONSOLE_MODE_CHARACTER).
Definition console.h:400
uint32_t historycount
Definition console.h:419
uint32_t x2
Window X2.
Definition console.h:378
uint32_t cursorbackcolor
Cursor Background Color (WINDOW_MODE_TEXT only).
Definition console.h:410
uint32_t y
Current Y.
Definition console.h:389
FONT_HANDLE font
Window Font.
Definition console.h:398
uint32_t maxy
Viewport Y2.
Definition console.h:387
uint32_t fontwidth
Font Width (Pixels for CONSOLE_MODE_PIXEL / Always 1 for CONSOLE_MODE_CHARACTER).
Definition console.h:399
uint32_t borderwidth
Current Border Width.
Definition console.h:395
uint32_t x
Current X.
Definition console.h:388
CONSOLE_HISTORY * historyfirst
Definition console.h:416
uint32_t y1
Window Y1.
Definition console.h:377
uint32_t y2
Window Y2.
Definition console.h:379
uint32_t cursorx
Cursor X.
Definition console.h:402
uint32_t position
Console Window Position (eg CONSOLE_POSITION_TOP).
Definition console.h:372
uint32_t miny
Viewport Y1.
Definition console.h:385
uint32_t signature
Signature for entry validation.
Definition console.h:371
CONSOLE_HISTORY * historylast
Definition console.h:417
uint32_t forecolor
Current Foreground Color.
Definition console.h:393
uint32_t state
Console Window State (eg WINDOW_STATE_VISIBLE).
Definition console.h:343
uint32_t offsety
Window Y Offset (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER).
Definition console.h:353
uint32_t width
Window Width in Columns (Characters for WINDOW_MODE_TEXT / Pixels for WINDOW_MODE_GRAPHICS).
Definition console.h:350
CONSOLE_DEVICE * console
Window console.
Definition console.h:358
uint32_t offsetx
Window X Offset (Pixels for CONSOLE_MODE_PIXEL / Characters for CONSOLE_MODE_CHARACTER).
Definition console.h:352
uint32_t x1
Window X1.
Definition console.h:346
uint32_t height
Window Height in Rows (Characters for WINDOW_MODE_TEXT / Pixels for WINDOW_MODE_GRAPHICS).
Definition console.h:351
uint32_t mode
Console Window Mode (eg WINDOW_MODE_TEXT).
Definition console.h:344
uint32_t flags
Console Window Flags (eg WINDOW_FLAG_LINE_WRAP).
Definition console.h:345
uint32_t fontheight
Font Height (Pixels for CONSOLE_MODE_PIXEL / Always 1 for CONSOLE_MODE_CHARACTER).
Definition console.h:355
uint32_t x2
Window X2.
Definition console.h:348
FONT_HANDLE font
Window Font.
Definition console.h:357
uint32_t fontwidth
Font Width (Pixels for CONSOLE_MODE_PIXEL / Always 1 for CONSOLE_MODE_CHARACTER).
Definition console.h:354
uint32_t borderwidth
Current Border Width.
Definition console.h:356
uint32_t y1
Window Y1.
Definition console.h:347
uint32_t y2
Window Y2.
Definition console.h:349
uint32_t position
Console Window Position (eg CONSOLE_POSITION_TOP).
Definition console.h:342