Usermode/GUITerminal - Progressing, compiles and runs but stubbed
[tpg/acess2.git] / Usermode / Applications / gui_shell_src / display.c
1 /*
2  * Acess GUI Terminal
3  * - By John Hodge (thePowersGang)
4  *
5  * display.c
6  * - Abstract display manipulation methods
7  */
8 #include "include/display.h"
9 #include <acess/sys.h>  // _SysDebug
10 #include <stdlib.h>     // exit
11
12 #define UNIMPLIMENTED() do{_SysDebug("UNIMPLIMENTED %s", __func__); exit(-1);}while(0)
13
14 #define MAX_LINES       100
15
16 // === GLOBALS ===
17  int    giCurrentLine;
18  int    giCurrentLinePos;       // byte offset, not column
19  int    giCurrentCol;
20  int    giFirstLine;    // Ring buffer start
21 char    **gasDisplayLines;
22
23 // === CODE ===
24 void Display_Init(void)
25 {
26         gasDisplayLines = malloc( sizeof(char*) * MAX_LINES );
27 }
28
29 void Display_AddText(int Length, const char *UTF8Text)
30 {
31         _SysDebug("%i '%.*s'", Length, Length, UTF8Text);
32         UNIMPLIMENTED();
33 }
34
35 void Display_Newline(int bCarriageReturn)
36 {
37         UNIMPLIMENTED();
38 }
39
40 void Display_SetCursor(int Row, int Col)
41 {
42         UNIMPLIMENTED();
43 }
44
45 void Display_MoveCursor(int RelRow, int RelCol)
46 {
47         UNIMPLIMENTED();
48 }
49
50 void Display_ClearLine(int Dir) // 0: All, 1: Forward, -1: Reverse
51 {
52         UNIMPLIMENTED();
53 }
54
55 void Display_ClearLines(int Dir)        // 0: All, 1: Forward, -1: Reverse
56 {
57         UNIMPLIMENTED();
58 }
59
60 void Display_SetForeground(uint32_t RGB)
61 {
62         UNIMPLIMENTED();
63 }
64
65 void Display_SetBackground(uint32_t RGB)
66 {
67         UNIMPLIMENTED();
68 }
69
70 void Display_Flush(void)
71 {
72         UNIMPLIMENTED();
73 }
74

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