XenevaOS
Loading...
Searching...
No Matches
term.h
Go to the documentation of this file.
1
30#ifndef __TERMINAL_H__
31#define __TERMINAL_H__
32
33#include <stdint.h>
34
35#define TERMINAL_MAX_COLS 256
36#define TERMINAL_MAX_ROWS 128
37
38#define TERMINAL_HISTORY_MAX 100
39
46
53
54typedef struct {
56 int cols, rows;
57 int cursorX, cursorY;
58 int lastCursorX, lastCursorY;
59 int inputStartX, inputStartY;
60 int savedCursorX, savedCursorY;
61 int cellW, cellH;
63 int originX, originY;
69 char inputBuffer[256];
70 char inputSaved[256];
74 volatile bool blink_visible;
77} Terminal;
78
79#endif
unsigned int uint32_t
Definition acefiex.h:163
unsigned char uint8_t
Definition acefiex.h:161
Definition term.h:54
bool cursor_hide
Definition term.h:76
TerminalHistory history
Definition term.h:68
volatile bool blink_visible
Definition term.h:74
int lastCursorX
Definition term.h:58
int cursorX
Definition term.h:57
int cols
Definition term.h:56
int baseine
Definition term.h:62
uint32_t defaultBG
Definition term.h:65
int lastCellXClicked
Definition term.h:72
int scrollTop
Definition term.h:66
int originX
Definition term.h:63
uint32_t defaultFg
Definition term.h:64
int cellH
Definition term.h:61
int savedCursorX
Definition term.h:60
int inputStartX
Definition term.h:59
int lastCellYClicked
Definition term.h:73
int intputLen
Definition term.h:71
bool scrolling
Definition term.h:75
int scrollBot
Definition term.h:67
Definition term.h:40
uint32_t fg
Definition term.h:43
uint8_t flags
Definition term.h:44
uint8_t c
Definition term.h:41
uint32_t bg
Definition term.h:42
Definition term.h:47
int count
Definition term.h:49
int browse
Definition term.h:51
char entries[TERMINAL_HISTORY_MAX][256]
Definition term.h:48
int head
Definition term.h:50
#define TERMINAL_HISTORY_MAX
Definition term.h:38
#define TERMINAL_MAX_COLS
Definition term.h:35
struct _term_history_ TerminalHistory
struct _cell_ TermCell
#define TERMINAL_MAX_ROWS
Definition term.h:36