home *** CD-ROM | disk | FTP | other *** search
- main()
- {
- int mode;
-
- if (fg_egacheck() < 2) {
- printf("This program requires an Enhanced Graphics Adapter\n");
- printf("(EGA) and an Enhanced Color Display (ECD).\n");
- exit();
- }
-
- mode = fg_getmode();
- fg_setmode(16);
-
- fg_setcolor(15);
- fg_text("Hello, world.",13);
-
- fg_waitkey();
-
- fg_setmode(mode);
- fg_reset();
- }