X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Fgui_shell_src%2Finclude%2Fdisplay.h;h=4feaf352d2be80ff950b0d3556cdeab0ab2ccce5;hb=e7a76b0d8a0cc6aa77966509780973a6f8216ef7;hp=80bc69caf8834dcde2a084b812c94dc379789600;hpb=814c5d5a3c1fb1e06afa268561e60a529af90b7a;p=tpg%2Facess2.git diff --git a/Usermode/Applications/gui_shell_src/include/display.h b/Usermode/Applications/gui_shell_src/include/display.h index 80bc69ca..4feaf352 100644 --- a/Usermode/Applications/gui_shell_src/include/display.h +++ b/Usermode/Applications/gui_shell_src/include/display.h @@ -3,11 +3,15 @@ * - By John Hodge (thePowersGang) * * display.h - * - RichText Termianl Translation + * - RichText terminal translation */ #ifndef _DISPLAY_H_ #define _DISPLAY_H_ +#include + +extern void Display_Init(int Cols, int Lines, int ExtraScrollbackLines); + extern void Display_AddText(int Length, const char *UTF8Text); extern void Display_Newline(int bCarriageReturn); extern void Display_SetCursor(int Row, int Col); @@ -16,6 +20,16 @@ extern void Display_ClearLine(int Dir); // 0: All, 1: Forward, -1: Reverse extern void Display_ClearLines(int Dir); // 0: All, 1: Forward, -1: Reverse extern void Display_SetForeground(uint32_t RGB); extern void Display_SetBackground(uint32_t RGB); +/** + * \brief Ensure that recent updates are flushed to the server + * \note Called at the end of an "input" buffer + */ +extern void Display_Flush(void); + +/** + * \brief Switch the display to the alternate buffer (no scrollback) + */ +extern void Display_ShowAltBuffer(int AltBufEnabled); #endif