home *** CD-ROM | disk | FTP | other *** search
- #include <exec/types.h>
- #include <exec/nodes.h>
- #include <exec/lists.h>
- #include <exec/memory.h>
- #include <powerup/ppclib/interface.h>
- #include <powerup/gcclib/powerup_protos.h>
-
- int main(void)
- {
- BPTR MyFile;
- ULONG MySignal;
-
- if (MyFile=PPCOpen("con:0/0/640/200/TaskA/CLOSE",MODE_NEWFILE))
- {
- for (;;)
- {
- if (PPCSetSignal(0L,SIGBREAKF_CTRL_C) & SIGBREAKF_CTRL_C)
- {
- break;
- }
- PPCfprintf(MyFile,
- "Task A is active\n");
-
- }
- PPCClose(MyFile);
- }
- else
- {
- PPCprintf("Couldn`t open CLI Window\n");
- }
- return(0);
- }
-