Merge branch 'master' of git://localhost/acess2
[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
13 extern void     Display_Init(int Cols, int Lines, int ExtraScrollbackLines);
14
15 extern void     Display_AddText(int Length, const char *UTF8Text);
16 extern void     Display_Newline(int bCarriageReturn);
17 extern void     Display_SetCursor(int Row, int Col);
18 extern void     Display_MoveCursor(int RelRow, int RelCol);
19 extern void     Display_ClearLine(int Dir);     // 0: All, 1: Forward, -1: Reverse
20 extern void     Display_ClearLines(int Dir);    // 0: All, 1: Forward, -1: Reverse
21 extern void     Display_SetForeground(uint32_t RGB);
22 extern void     Display_SetBackground(uint32_t RGB);
23 /**
24  * \brief Ensure that recent updates are flushed to the server
25  * \note Called at the end of an "input" buffer
26  */
27 extern void     Display_Flush(void);
28
29 /**
30  * \brief Switch the display to the alternate buffer (no scrollback)
31  */
32 extern void     Display_ShowAltBuffer(int AltBufEnabled);
33
34 #endif
35

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