platotermClassicMac/main.c

43 lines
735 B
C
Raw Normal View History

2019-01-25 22:09:42 +00:00
#include "protocol.h"
#include "screen.h"
#include "io.h"
#include "terminal.h"
#include "keyboard.h"
#include "touch.h"
#include "splash.h"
2019-02-03 18:39:12 +00:00
#include "config.h"
2019-01-25 22:09:42 +00:00
#define true 1
#define false 0
unsigned char already_started=false;
unsigned char running=false;
void done(void)
{
io_done();
touch_done();
screen_done();
}
2019-01-25 22:09:42 +00:00
void main(void)
{
2019-02-03 18:39:12 +00:00
config_init();
2019-01-25 22:09:42 +00:00
screen_init();
touch_init();
NoEcho=padT;
ShowPLATO(splash,sizeof(splash));
NoEcho=padF;
terminal_initial_position();
io_init();
2019-02-03 18:39:12 +00:00
screen_update_menus();
2019-01-25 22:09:42 +00:00
running=true;
while (running==true)
{
screen_main(); /* keyboard_main() and touch_main() are called in here. */
io_main();
2019-01-25 22:09:42 +00:00
}
done();
2019-01-25 22:09:42 +00:00
}