Usermode/GUI Terminal - Reworking terminal code. Incomplete
[tpg/acess2.git] / Usermode / Applications / gui_shell_src / include / display.h
1 /*
2  * Acess GUI Terminal
3  * - By John Hodge (thePowersGang)
4  *
5  * display.h
6  * - RichText terminal translation
7  */
8 #ifndef _DISPLAY_H_
9 #define _DISPLAY_H_
10
11 #include <stdint.h>
12 #include <stddef.h>     // size_t
13 #include <stdbool.h>
14
15 typedef struct sTerminal        tTerminal;
16
17 extern tTerminal        *Display_Init(int Cols, int Lines, int ExtraScrollbackLines);
18
19 extern void     Display_AddText(tTerminal *Term, size_t Length, const char *UTF8Text);
20 extern void     Display_Newline(tTerminal *Term, bool bCarriageReturn);
21 extern void     Display_SetCursor(tTerminal *Term, int Row, int Col);
22 extern void     Display_MoveCursor(tTerminal *Term, int RelRow, int RelCol);
23 extern void     Display_ClearLine(tTerminal *Term, int Dir);    // 0: All, 1: Forward, -1: Reverse
24 extern void     Display_ClearLines(tTerminal *Term, int Dir);   // 0: All, 1: Forward, -1: Reverse
25 extern void     Display_SetForeground(tTerminal *Term, uint32_t RGB);
26 extern void     Display_SetBackground(tTerminal *Term, uint32_t RGB);
27 /**
28  * \brief Ensure that recent updates are flushed to the server
29  * \note Called at the end of an "input" buffer
30  */
31 extern void     Display_Flush(tTerminal *Term);
32
33 /**
34  * \brief Switch the display to the alternate buffer (no scrollback)
35  */
36 extern void     Display_ShowAltBuffer(tTerminal *Term, bool AltBufEnabled);
37
38 #endif
39

UCC git Repository :: git.ucc.asn.au