mirror of
1
0
Fork 0

Updated types.h

This commit is contained in:
Tristan B. Kildaire 2020-05-05 21:50:05 +02:00
parent 38c6705564
commit 05c9a16caf
1 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,15 @@
/**
* Represents the tty
*/
struct TTY
{
unsigned int rows;
unsigned int columns;
unsigned int cursorX;
unsigned int cursorY;
};
/**
* Represents an open editor session.
*
@ -24,4 +36,7 @@ struct Session
unsigned int position;
char isActive;
/* Pointer to the tty struct (we could copy it in here but oof) */
struct TTY* teletype;
};