3 * - By John Hodge (thePowersGang)
6 * - RichText terminal translation
12 #include <stddef.h> // size_t
15 typedef struct sTerminal tTerminal;
17 extern tTerminal *Display_Init(int Cols, int Lines, int ExtraScrollbackLines);
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);
28 * \brief Ensure that recent updates are flushed to the server
29 * \note Called at the end of an "input" buffer
31 extern void Display_Flush(tTerminal *Term);
34 * \brief Switch the display to the alternate buffer (no scrollback)
36 extern void Display_ShowAltBuffer(tTerminal *Term, bool AltBufEnabled);