Choco OS  V.0.16.9.0
Join to the chocolate world
oc_terminal.h
Go to the documentation of this file.
1 
28 #ifndef INC_KERNEL_OC_TERMINAL_H_
29 #define INC_KERNEL_OC_TERMINAL_H_
30 
31 #include <stdbool.h>
32 #include <stdint.h>
33 
39 #define _________________________________________TYPES_SECTION______________________________________________________________________________
40 
43 //==========================================================================================================================================
47 //==========================================================================================================================================
48 typedef enum
49 {
59 
60 //==========================================================================================================================================
64 //==========================================================================================================================================
65 typedef struct
66 {
67  int16_t Column;
68  int16_t Row;
70 
71 //==========================================================================================================================================
75 //==========================================================================================================================================
76 typedef struct
77 {
78  //======================================================================================================================================
84  //======================================================================================================================================
85  bool (*ResetDevice)(void * Context);
86 
87  //======================================================================================================================================
93  //======================================================================================================================================
94  bool (*ClearScreen)(void * Context);
95 
96  //======================================================================================================================================
102  //======================================================================================================================================
103  oC_Terminal_CursorPos_t (*GetCursorPosition)(void * Context);
104 
105  //======================================================================================================================================
111  //======================================================================================================================================
112  bool (*EnableLineWrap)(void * Context);
113 
114  //======================================================================================================================================
120  //======================================================================================================================================
121  bool (*DisableLineWrap)(void * Context);
122 
123  //======================================================================================================================================
131  //======================================================================================================================================
132  bool (*SetCursorHome)(void * Context , oC_Terminal_CursorPos_t CursorPos);
133 
134  //======================================================================================================================================
140  //======================================================================================================================================
141  bool (*CursorHome)(void * Context);
142 
143  //======================================================================================================================================
151  //======================================================================================================================================
152  bool (*CursorUp)(void * Context,int Count);
153 
154  //======================================================================================================================================
162  //======================================================================================================================================
163  bool (*CursorDown)(void * Context,int Count);
164 
165  //======================================================================================================================================
173  //======================================================================================================================================
174  bool (*CursorForward)(void * Context,int Count);
175 
176  //======================================================================================================================================
184  //======================================================================================================================================
185  bool (*CursorBackward)(void * Context,int Count);
186 
187  //======================================================================================================================================
193  //======================================================================================================================================
194  bool (*SaveCursorPosition)(void * Context);
195 
196  //======================================================================================================================================
202  //======================================================================================================================================
203  bool (*RestoreCursorPosition)(void * Context);
204 
205  //======================================================================================================================================
211  //======================================================================================================================================
212  bool (*SaveCursorPositionAndAttrs)(void * Context);
213 
214  //======================================================================================================================================
220  //======================================================================================================================================
221  bool (*RestoreCursorPositionAndAttrs)(void * Context);
222 
223  //======================================================================================================================================
229  //======================================================================================================================================
230  bool (*EnableScrollScreen)(void * Context);
231 
232  //==========================================================================================================================================
241  //==========================================================================================================================================
242  bool (*EnableScrollScreenTo)(void * Context, int startRow , int endRow );
243 
244  //======================================================================================================================================
250  //======================================================================================================================================
251  bool (*ScrollUp)(void * Context);
252 
253  //======================================================================================================================================
259  //======================================================================================================================================
260  bool (*ScrollDown)(void * Context);
261 
262  //======================================================================================================================================
268  //======================================================================================================================================
269  bool (*SetTab)(void * Context);
270 
271  //======================================================================================================================================
277  //======================================================================================================================================
278  bool (*ClearTab)(void * Context);
279 
280  //======================================================================================================================================
286  //======================================================================================================================================
287  bool (*ClearAllTabs)( void * Context );
288 
289  //======================================================================================================================================
295  //======================================================================================================================================
296  bool (*EraseToEndOfLine)( void * Context );
297 
298  //======================================================================================================================================
304  //======================================================================================================================================
305  bool (*EraseToStartOfLine)( void * Context );
306 
307  //======================================================================================================================================
313  //======================================================================================================================================
314  bool (*EraseCurrentLine)( void * Context );
315 
316  //======================================================================================================================================
325  //======================================================================================================================================
326  bool (*SetKeyDefinition)(void * Context, char Key , char * String );
327 
328  //======================================================================================================================================
334  //======================================================================================================================================
335  bool (*ResetAllAttributes)( void * Context );
336 
337  //======================================================================================================================================
343  //======================================================================================================================================
344  bool (*SetBright)( void * Context );
345 
346  //======================================================================================================================================
352  //======================================================================================================================================
353  bool (*SetDim)( void * Context );
354 
355  //======================================================================================================================================
361  //======================================================================================================================================
362  bool (*SetUnderscore)( void * Context );
363 
364  //======================================================================================================================================
370  //======================================================================================================================================
371  bool (*SetBlink)( void * Context );
372 
373  //======================================================================================================================================
379  //======================================================================================================================================
380  bool (*SetReverese)( void * Context );
381 
382  //======================================================================================================================================
388  //======================================================================================================================================
389  bool (*SetHidden)( void * Context );
390 
391  //======================================================================================================================================
399  //======================================================================================================================================
400  bool (*SetForegroundColor)( void * Context,oC_Terminal_Color_t Color );
401 
402  //======================================================================================================================================
410  //======================================================================================================================================
411  bool (*SetBackgroundColor)( void * Context, oC_Terminal_Color_t Color );
413 
414 #undef _________________________________________TYPES_SECTION______________________________________________________________________________
415 
417 #endif /* INC_KERNEL_OC_TERMINAL_H_ */
oC_Terminal_Color_t
Definition: oc_terminal.h:48