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
40
47
54
55typedef struct {
57 int cols, rows;
58 int cursorX, cursorY;
59 int lastCursorX, lastCursorY;
60 int inputStartX, inputStartY;
61 int savedCursorX, savedCursorY;
62 int cellW, cellH;
64 int originX, originY;
70 char inputBuffer[256];
71 char inputSaved[256];
75 volatile bool blink_visible;
79
80#endif
unsigned int uint32_t
Definition acefiex.h:163
unsigned char uint8_t
Definition acefiex.h:161
Definition term.h:55
bool cursor_hide
Definition term.h:77
TerminalHistory history
Definition term.h:69
volatile bool blink_visible
Definition term.h:75
int lastCursorX
Definition term.h:59
int cursorX
Definition term.h:58
int cols
Definition term.h:57
int baseine
Definition term.h:63
uint32_t defaultBG
Definition term.h:66
int lastCellXClicked
Definition term.h:73
int scrollTop
Definition term.h:67
int originX
Definition term.h:64
uint32_t defaultFg
Definition term.h:65
int cellH
Definition term.h:62
int savedCursorX
Definition term.h:61
int inputStartX
Definition term.h:60
int lastCellYClicked
Definition term.h:74
int intputLen
Definition term.h:72
bool scrolling
Definition term.h:76
int scrollBot
Definition term.h:68
Definition term.h:41
uint32_t fg
Definition term.h:44
uint8_t flags
Definition term.h:45
uint8_t c
Definition term.h:42
uint32_t bg
Definition term.h:43
Definition term.h:48
int count
Definition term.h:50
int browse
Definition term.h:52
char entries[TERMINAL_HISTORY_MAX][256]
Definition term.h:49
int head
Definition term.h:51
#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