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"
|
|
|
|
#include "help.h"
|
|
|
|
|
|
|
|
#define true 1
|
|
|
|
#define false 0
|
|
|
|
|
|
|
|
unsigned char already_started=false;
|
|
|
|
unsigned char running=false;
|
|
|
|
|
2019-01-27 23:41:38 +00:00
|
|
|
void done(void)
|
|
|
|
{
|
|
|
|
io_done();
|
|
|
|
touch_done();
|
|
|
|
screen_done();
|
|
|
|
}
|
|
|
|
|
2019-01-25 22:09:42 +00:00
|
|
|
void main(void)
|
|
|
|
{
|
|
|
|
screen_init();
|
2019-01-27 23:41:38 +00:00
|
|
|
touch_init();
|
|
|
|
help_init();
|
|
|
|
NoEcho=padT;
|
2019-01-27 17:17:34 +00:00
|
|
|
ShowPLATO(splash,sizeof(splash));
|
2019-01-27 23:41:38 +00:00
|
|
|
NoEcho=padF;
|
|
|
|
terminal_initial_position();
|
|
|
|
io_init();
|
2019-01-25 22:09:42 +00:00
|
|
|
running=true;
|
|
|
|
while (running==true)
|
|
|
|
{
|
2019-01-27 23:41:38 +00:00
|
|
|
screen_main(); /* keyboard_main() and touch_main() are called in here. */
|
2019-01-27 17:17:34 +00:00
|
|
|
io_main();
|
2019-01-25 22:09:42 +00:00
|
|
|
}
|
|
|
|
}
|
2019-01-27 23:41:38 +00:00
|
|
|
|