mirror of
1
0
Fork 0

Refactoring types

This commit is contained in:
Tristan B. Kildaire 2020-05-06 10:32:23 +02:00
parent 9227c30f8c
commit 6f4c8589d4
2 changed files with 8 additions and 1 deletions

View File

@ -36,6 +36,7 @@ int main(int argc, char** args)
printf("Too many args, or missing a file.\n");
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}

View File

@ -3,11 +3,16 @@
*/
struct TTY
{
/* Dimensions of tty */
unsigned int rows;
unsigned int columns;
/* Current position */
unsigned int cursorX;
unsigned int cursorY;
/* Screen data to draw */
char* screen;
};
/**
@ -35,8 +40,9 @@ struct Session
/* Position */
unsigned int position;
/* Whether or not we are running */
char isActive;
/* Pointer to the tty struct (we could copy it in here but oof) */
/* Pointer to tty object */
struct TTY* teletype;
};