Refactoring types
This commit is contained in:
parent
9227c30f8c
commit
6f4c8589d4
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
Loading…
Reference in New Issue