26 #ifndef _GWIN_CONSOLE_H
27 #define _GWIN_CONSOLE_H
32 typedef struct GConsoleObject {
36 #if GWIN_CONSOLE_ESCSEQ
42 #if GWIN_CONSOLE_USE_HISTORY
48 #if GFX_USE_OS_CHIBIOS && GWIN_CONSOLE_USE_BASESTREAM
49 struct GConsoleWindowStream_t {
50 const struct GConsoleWindowVMT_t *vmt;
51 _base_asynchronous_channel_data
79 #define gwinConsoleCreate(gc, pInit) gwinGConsoleCreate(GDISP, gc, pInit)
81 #if GFX_USE_OS_CHIBIOS && GWIN_CONSOLE_USE_BASESTREAM
92 BaseSequentialStream *gwinConsoleGetStream(
GHandle gh);
95 #if GWIN_CONSOLE_USE_HISTORY
109 gBool gwinConsoleSetBuffer(
GHandle gh, gBool onoff);
GHandle gwinGConsoleCreate(GDisplay *g, GConsoleObject *gc, const GWindowInit *pInit)
Create a console window.
void gwinPutCharArray(GHandle gh, const char *str, gMemSize n)
Put the character array at the cursor position in the window. It will wrap lines as required.
void gwinPutString(GHandle gh, const char *str)
Put a string at the cursor position in the window. It will wrap lines as required.
void gwinPrintf(GHandle gh, const char *fmt,...)
Print a formatted string at the cursor position in the window. It will wrap lines as required.
void gwinPutChar(GHandle gh, char c)
Put a character at the cursor position in the window.
gI16 gCoord
The type for a coordinate or length on the screen.
The structure to initialise a GWIN.
A window object structure.