2004-03-06 13:35:29 +00:00
|
|
|
/*
|
|
|
|
This is an example program for GEOS.
|
|
|
|
It reads GEOS serial number and prints it on the screen.
|
|
|
|
|
|
|
|
Maciej 'YTM/Elysium' Witkowiak <ytm@elysium.pl>
|
|
|
|
05.03.2004
|
|
|
|
*/
|
|
|
|
|
2012-02-09 12:32:53 +00:00
|
|
|
|
2004-03-06 13:35:29 +00:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <geos.h>
|
|
|
|
#include <conio.h>
|
|
|
|
|
|
|
|
const graphicStr Table = {
|
2012-02-09 12:32:53 +00:00
|
|
|
NEWPATTERN(0), MOVEPENTO(0, 0), RECTANGLETO(320, 199), GSTR_END };
|
2004-03-06 13:35:29 +00:00
|
|
|
|
2012-02-09 12:32:53 +00:00
|
|
|
void Exit(void)
|
|
|
|
{
|
2019-11-11 15:30:09 +00:00
|
|
|
exit(EXIT_SUCCESS);
|
2004-03-06 13:35:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void Menu = {
|
|
|
|
(char)0, (char)14, (int)0, (int)28, (char)(HORIZONTAL|1),
|
|
|
|
CBOLDON "quit", (char)MENU_ACTION, &Exit };
|
|
|
|
|
2012-02-09 12:32:53 +00:00
|
|
|
int main(void)
|
|
|
|
{
|
2004-03-06 13:35:29 +00:00
|
|
|
dispBufferOn = ST_WR_FORE;
|
|
|
|
|
|
|
|
GraphicsString(&Table);
|
2012-02-09 12:32:53 +00:00
|
|
|
cputsxy(0, 3, CBOLDON "Your Serial Number is:");
|
2004-03-06 13:35:29 +00:00
|
|
|
cputhex16(GetSerialNumber());
|
|
|
|
|
|
|
|
DoMenu(&Menu);
|
|
|
|
MainLoop();
|
2012-02-09 12:32:53 +00:00
|
|
|
|
2004-03-06 13:35:29 +00:00
|
|
|
// will never reach this point...
|
|
|
|
return 0;
|
|
|
|
}
|